$SSHQGL[￿$￿￿￿￿0HWD)UDPH￿&RPPDQG￿5HIHUHQFH￿ ￿ ￿￿￿

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?'DWDU￿H[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&$￿?:￿//&whenULW￿WVUY6\VWHP?:ULWH&￿H??7HPSthe)LOHV?ZUL￿programZUL?￿￿￿￿terminates:&￿?7HPS￿H[H￿ZUL

The following example demonstrates using the script file to implement a front-end registration utility before executing the application Coolapp.exe. This method can

'(/(7((;(&87(:253be$7+used.',5￿&$￿￿?//&to&5HJXWLO?5HJRROVWII?&RRODSSrun?7HPS￿?7HPSseveral￿applicationsH[H￿H[Hin succession:

Page 131
Image 131
Citrix Systems 1.8 manual Dpsohv, Execute