Help Center

CWhsExec.CurrentDirectoryproperty

Retrieves or changes the current active directory.

Windowspropertydocumented

Syntax

PRIVATE PROPERTY CWhsExec.CurrentDirectory () AS DWSTRING

Parameters

NameDescription
wszDirThe directory to set.

Description

Retrieves or changes the current active directory.

The [GET] CurrentDirectory returns a string that contains the fully qualified path of the current working directory of the active process.

The [SET] CurrentDirectory sets the current working directory of the active process.

Example

[GET] PROPERTY CurrentDirectory () AS DWSTRING [SET] PROPERTY CurrentDirectory (BYREF wszDir AS WSTRING) AS HRESULT

Reference

  • Defined in AfxNova/AfxWsh.inc:339
  • Documented in Windows/Windows Script/Windows Shell.md
  • Topic: Windows Shell