-1

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

Rober.Ya
  • 65
  • 11

2 Answers2

2

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.

Tom Brunberg
  • 17,724
  • 7
  • 32
  • 46
-1

Thanks a lot tom You'r right
but what I was't know is how to using it

with some googleit :)

rdp.RemoteProgram.ServerStartProgram
   ('||applicationName', '', server_name, false, '-1 parameter', false);

where (-1) is the parameter name or id at the application
and (parameter) is the value to pass it

Rober.Ya
  • 65
  • 11