How can I pass parameters for my application when using the ProcessInitialize function?
The ProcessInitialize function includes a sParams functions which can be used to pass specific attributes to the process being initialized. In order to pass more than one parameter it is necessary to concatenate the parameters within sParams.
If each command to be passed to the process is contained in a variable for instance, the following code can be used:
hProcessId := ProcessInitialize("C:\\ScriptTools\\AUT.bat", PROCESS_DETACHED,
sServerName + " " + sFileName + " " + sInputString,"C:\\ScriptTools\\");
For further help or advice please refer to SilkPeformer's online help or contact Support.