Vocola.net
Vocola 3.1 Function Library
RunProgram(program, arguments)
Namespaces LibraryMain ► RunProgram
Executes a program, with arguments.
Syntax
RunProgram(program, arguments)
Parameters
program
Name of the program to execute.
arguments
Program arguments, separated by spaces. If an argument contains a space character, that argument should be enclosed in double quotes.
Remarks
Executes a program, as if program followed by arguments was typed at a command prompt. Returns after launching the program.

If program does not specify a full file path, the program must be in a folder listed in the PATH environment variable.

Examples
CopyLaunch a perl script
Upload Home Page = RunProgram(perl, C:/Scripts/uploadHomePage.pl);
Launches a perl script, passing the name of the script as an argument.
CopyCopy a file
Run Backup = RunProgram(xcopy, '/y C:/Users/Pat/important.txt "F:/My Backups"');
Runs xcopy, passing 3 arguments.

Assembly: VocolaFunctionLibrary (Module: VocolaFunctionLibrary) Version: 3.1.1.0 (3.1.1.0)