Fosco
Wed Aug 24 01:23:22 CDT 2005
"Ahmed Martens"
> Run "C:\MyProgramm.EXE /e"
> sorry, but this code-exampla will not works form me.
set oShell = CreateObject("WScript.Shell")
oShell.run"calc"
Runs a program in a new process.
object.Run(strCommand, [intWindowStyle], [bWaitOnReturn])
Arguments
object
WshShell object.
strCommand
String value indicating the command line you want to run. You must include any parameters you want to pass to the
executable file.
intWindowStyle
Optional. Integer value indicating the appearance of the program's window. Note that not all programs make use of this
information.
bWaitOnReturn
Optional. Boolean value indicating whether the script should wait for the program to finish executing before continuing
to the next statement in your script. If set to true, script execution halts until the program finishes, and Run returns
any error code returned by the program. If set to false (the default), the Run method returns immediately after starting
the program, automatically returning 0 (not to be interpreted as an error code).
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
http://download.microsoft.com/download/winscript56/Install/5.6/W982KMeXP/EN-US/scrdoc56en.exe
--
Fosco