I use
rdp.RemoteProgram.ServerStartProgram('||applicationName', '', server_name, false, '', false);
to start the program from server and it's working fine
But now am trying to start a program with a parameter
where should I put the parameter to pass it to the application
Thanks a lot
ServerStartProgram()
is documented here.
HRESULT ServerStartProgram(
[in] BSTR bstrExecutablePath,
[in] BSTR bstrFilePath,
[in] BSTR bstrWorkingDirectory,
[in] VARIANT_BOOL vbExpandEnvVarInWorkingDirectoryOnServer,
[in] BSTR bstrArguments,
[in] VARIANT_BOOL vbExpandEnvVarInArgumentsOnServer
);
bstrArguments [in]
The command-line arguments for the RemoteApp program that are specified in bstrExecutablePath. Set this to NULL if bstrExecutablePath is not specified.