$SSHQGL[$0HWD)UDPH&RPPDQG5HIHUHQFH
execute
Executes the program specified by the path command using the working directory specified by the workdir command.
path executablepath
Sets the program to be executed by executablepath.
workdir directory
Sets the default working directory to the path specified by directory.
([DPSOHV
(;(&87(:253The$7+.following',5&?:WVUY?6\VWHP&?7HPSscript file?6ROruns theH[HSolitaire card game, Sol.exe:
The following script file runs the program Fubar.exe. It deletes files in the Myapps\Data directory created for the user that launched the application when the
'(/(7((;(&87(:253program$7+.',5&&?0\DSSV?)XE&terminates:?0\DSV?'DWD??0\DSV?'DWDUH[H
The following script file copies all the .wri files from the directory C:\Write\Files, executes Write.exe in directory C:\Temp.wri, and then removes all files from that
(;(&87('(/(7(:53directory$27+3<.',5&$?://&whenULWWVUY6\VWHP?:ULWH&H??7HPSthe)LOHV?ZULprogramZUL?terminates:&?7HPSH[HZUL
The following example demonstrates using the script file to implement a
'(/(7((;(&87(:253be$7+used.',5&$?//&to&5HJXWLO?5HJRROVWII?&RRODSSrun?7HPS?7HPSseveralapplicationsH[HH[Hin succession: