decorative banner

Previous | Next               Table Of Contents > 4 File system commands > 4.5 Executing local programs

4.5 Executing local programs


The ftprunprogram command runs a program on the local computer. The path to the program executable and the parameters to be passed to the program should be specified. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully.

The syntax is

ftprunprogram <program path string>, <parameter string>;

Some examples are

ftprunprogram "c:\\Program Files\\notepad.exe", "C:\\myfile.txt"; #open a file in notepad


Previous | Next