Dpsohv – Citrix Systems Citrix MetaFrame Application for Windows 1.8 User Manual
Page 131

$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
The following script file runs the Solitaire card game, Sol.exe:
Q6UCÃ8)cX
cTr"!cTyrr
XPSF9DSÃ8)cUr
@Y@8VU@
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
program terminates:
Q6UCÃ8)cHhcAih
rr
XPSF9DSÃ8)cHhc9hh
@Y@8VU@
9@G@U@Ã8)cHhc9hhc
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
directory when the program terminates:
Q6UCÃ8)cX
cTr"!cX
vrrr
XPSF9DSÃ8)cUr
v
8PQ`Ã8)cX
vrcAvyrc
vÃ8)cUr
v
@Y@8VU@
9@G@U@6GGÃ8)cUr
vc
The following example demonstrates using the script file to implement a front-end
registration utility before executing the application Coolapp.exe. This method can
be used to run several applications in succession:
Q6UCÃ8)cSrtvycSrtrr
XPSF9DSÃ8)cSrtvy
@Y@8VU@
Q6UCÃ8)c8yssc8yhrr
XPSF9DSÃ8)cUr
@Y@8VU@
9@G@U@6GGÃ8)cUr