Directory Control

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Directory Control.

These routines access, modify, and obtain information about the directory structure.

Directory-Control Routines

RoutineUse.NET Framework equivalent
_chdir, _wchdirChange current working directorySystem::Environment::CurrentDirectory
_chdriveChange current driveSystem::Environment::CurrentDirectory
_getcwd, _wgetcwdGet current working directory for default driveSystem::Environment::CurrentDirectory
_getdcwd, _wgetdcwdGet current working directory for specified driveSystem::Environment::CurrentDirectory
_getdiskfreePopulates a _diskfree_t structure with information about a disk drive.Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.
_getdriveGet current (default) driveSystem::Environment::CurrentDirectory
_getdrivesReturns a bitmask representing the currently available disk drives.Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.
_mkdir, _wmkdirMake new directorySystem::IO::Directory::CreateDirectory, System::IO::DirectoryInfo::CreateSubdirectory
_rmdir, _wrmdirRemove directorySystem::IO::Directory::Delete
_searchenv, _wsearchenv, _searchenv_s, _wsearchenv_sSearch for given file on specified pathsNot applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Run-Time Routines by Category
File Handling
System Calls

Show: