IScheduler::CreateCommandInfo method

Creates an object that you can use to provide additional property values to a command.

Syntax

HRESULT CreateCommandInfo(
  [in]  INameValueCollection *envVariables,
  [in]  BSTR                 workDirectory,
  [in]  BSTR                 stdin,
  [out] ICommandInfo         **pCommandInfo
);

Parameters

  • envVariables [in]
    An INameValueCollection interface that contains a collection of environment variables used by the command. If the command does not use additional environment variables, set to null.

  • workDirectory [in]
    The full path to the startup directory for the command. If the command runs in the current directory, set to an empty string.

  • stdin [in]
    The full path to the standard input file used by the command. If the command does not use an input file, set to an empty string.

  • pCommandInfo [out]
    An ICommandInfo interface that defines the property values used by the command.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IScheduler

IRemoteCommand