Vocola.net
Vocola 3.1 Function Library
SetCommandLineForOpen(executableFilename, arguments)
Namespaces LibraryCommandFile ► SetCommandLineForOpen
Specifies the command line to be used for opening command files.
Syntax
SetCommandLineForOpen(executableFilename, arguments)
Parameters
executableFilename
Name of executable file to run when opening command files.
arguments
Arguments to command line used for opening command files.
Remarks
This function may be used to specify the program and command line arguments which functions like Open will use for opening command files.
Examples
CopyUsing Emacs to open command files
onLoad() := CommandFile.SetCommandLineForOpen(emacsclientw.exe, -n);
The program emacsclientw.exe may be used externally to open files in a running instance of the editor Emacs. The command line argument -n specifies that the calling process should exit once the file has been opened rather than waiting for a signal that editing is complete.

Here SetCommandLineForOpen is called not by a voice command but by defining an onLoad function. Putting this code in _global.vcl will cause emacsclientw.exe -n to be used for opening command files without further action on your part.

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