Home Page
        Orders     Downloads     Support     Contact     Deutsch
ZOC Terminal is a professional SSH Client and Terminal Emulator for Windows and macOS.
PyroBatchFTP Online Help Topic:

Script Commands → LocalExec

LocalExec <commandline>[, <timeout>]

LocalExecFile <filename> [, "print"]

 

LocalExec executes a program on the local system. The optional timeout is a max value in milliseconds (1000ms = 1s) how long the program may take to complete, before it will be killed. if the timeout is omitted, there will be no max. time.

LocalExecFile also starts a program on the local machine, but uses the Windows shell and is similar to double clicking a file or link (i.e. to start the associated application). If the string "print" is provided as a second parameter, the file is printed via Windows Shell, rather than opened.

 
Example:  LocalExec "CMD /c del olddata.dat"
 
Example:  LocalExec "zip datafiles *.dat", 10000
 
Example:  LocalExecFile "somefile.lnk"
 
Example:  LocalExecFile "notice.doc", "print"

 
← Back to Script Commands

 

Downloads
Orders
Contact
Support
Terms of Use
Privacy Policy
pixel