3.2.4.2.9.8 WorkingDirectory (put) (Opnum 19)

The WorkingDirectory (put) method sets the working directory property of the action. The executable for this action will be run with this working directory if the action runs.

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x04))] HRESULT WorkingDirectory(
   [in] BSTR workingDirectory
 );

workingDirectory: Contains the working directory to use for this action.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x8004530D

FSRM_E_OUT_OF_RANGE

The content of the workingDirectory parameter exceeds the maximum length of 4,000 characters.

0x80070057

E_INVALIDARG

The workingDirectory parameter is NULL.

The server MUST use workingDirectory as the working directory for this action's executable or return a nonzero error code.