|
Execute |
Top Previous Next |
|
Execute
Syntax Execute([in] FileName, [in] Parameters);
Description To execute an external file. This can be a website address such as http://www.google.com or an executable file such as c:\test.exe.
Parameters FileName The name of the file to execute. Parameters The parameters to be passed into the executed file
Return 1 = success 0 = failed -1 = FSCommands cannot be found
Example
FSCommand("Execute", "http://www.google.com,");
This will open a website at http://www.google.com using a default browser
FSCommand("Execute", "notepad,c:\\test.txt");
This will open a file c:\test.txt using a notepad application.
FSCommand("Execute", "c:\\programs\\wizard.exe,-test -r1");
This will execute an executable file at c:\programs\wizard.exe and passing an argument "-test -r1" as parameters |