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
Routine | Use | .NET Framework equivalent |
---|---|---|
_chdir, _wchdir | Change current working directory | System::Environment::CurrentDirectory |
_chdrive | Change current drive | System::Environment::CurrentDirectory |
_getcwd, _wgetcwd | Get current working directory for default drive | System::Environment::CurrentDirectory |
_getdcwd, _wgetdcwd | Get current working directory for specified drive | System::Environment::CurrentDirectory |
_getdiskfree | Populates 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. |
_getdrive | Get current (default) drive | System::Environment::CurrentDirectory |
_getdrives | Returns 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, _wmkdir | Make new directory | System::IO::Directory::CreateDirectory, System::IO::DirectoryInfo::CreateSubdirectory |
_rmdir, _wrmdir | Remove directory | System::IO::Directory::Delete |
_searchenv, _wsearchenv, _searchenv_s, _wsearchenv_s | Search for given file on specified paths | Not applicable. To call the standard C function, use PInvoke . For more information, see Platform Invoke Examples. |