Help Center

AfxSetCurrentDirectoryfunction

Changes the current directory for the current process.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxSetCurrentDirectory (BYVAL pwszPathName AS LPCWSTR) AS BOOLEAN
Also documented as AfxChDir, AfxSetCurDir — one description covers them all.

Parameters

NameDescription
lpPathNameThe path to the new current directory. This parameter may specify a relative path or a full path. In either case, the full path of the specified directory is calculated and stored as the current directory.

Description

Changes the current directory for the current process. Aliases: AfxSetCurDir, AfxSetCurrentDirectory.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:668
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures