Queues the executing of a local file.
int execute ( FileSpecObject executableFile, [String aParameters] );
execute method has the following parameters:
- A FileSpecObject representing the local file already on disk to be executed. Note that file names are case sensitive.
- An optional parameter string that is passed to the executable. (Ignored on Mac OS)
An integer error code. For a list of possible values, see Return Codes.
The specified file is not actually executed until the performInstall method is called. See performInstall for more information about queued commands during the installation process.
f = getFolder("Program", "myTextEditor.exe"); err = File.execute(f, "myfile.txt"); // indicates that 'myfile.txt' will be // opened in the editor