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

Page 131

Advertising
background image

$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‡†…‰cT’†‡r€"!cT‚yr‘r
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)cH’hƒƒ†cAˆih…r‘r
XPSF9DSÃ8)cH’hƒƒ†c9h‡h
@Y@8VU@
9@G@U@Ã8)cH’hƒƒ†c9h‡hc

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‡†…‰cT’†‡r€"!cX…v‡rr‘r
XPSF9DSÃ8)cUr€ƒ…v
8PQ`Ã8)cX…v‡rcAvyr†c…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)cSrtˆ‡vycSrtr‘r
XPSF9DSÃ8)cSrtˆ‡vy
@Y@8VU@
Q6UCÃ8)c8‚‚y†‡ˆssc8‚‚yhƒƒr‘r
XPSF9DSÃ8)cUr€ƒ
@Y@8VU@
9@G@U@6GGÃ8)cUr€ƒ

Advertising