On 10.01.2011 17:22 vtech-keystroke Listmanager wrote:
> From: "peter rejto"
>
> Now I would like to identify the snippet of your
> Opencurs.vdm, which does this. In particular I
> would like to know, how does Opencurs.vdm
> call my 7-zip.exe program.
It's here:
if (Is_WinNT) { //In WinNT/2000/XP...
Reg_Set(106, "cmd /c ") // use cmd command to be able to avoid DOS option
} else { //In Win95,98
Reg_Set(106, 'start "" ') // use start with double quotes added to fill the parameter "title",
// (important since the filename is in double quotes when calling application below!)
}
Sys(`|@(106) "|@(121)"`,SUPPRESS+SIMPLE+NOWAIT) //Open file in application
In fact Windows itself determines the standard application when a known
file is "executed" by means of "cmd" or "start".
Christian