目录控制Directory Control

这些例程可访问、修改和获取目录结构的相关信息。These routines access, modify, and obtain information about the directory structure.

目录控制例程Directory-Control Routines

例程Routine 使用Use
_chdir、_wchdir_chdir, _wchdir 更改当前工作目录Change current working directory
_chdrive_chdrive 更改当前驱动器Change current drive
_getcwd、_wgetcwd_getcwd, _wgetcwd 获取默认驱动器的当前工作目录Get current working directory for default drive
_getdcwd、_wgetdcwd_getdcwd, _wgetdcwd 获取指定驱动器的当前工作目录Get current working directory for specified drive
_getdiskfree_getdiskfree 使用磁盘驱动器的相关信息填充 _diskfree_t 结构。Populates a _diskfree_t structure with information about a disk drive.
_getdrive_getdrive 获取当前(默认)驱动器Get current (default) drive
_getdrives_getdrives 返回一个表示当前可用磁盘驱动器的位掩码。Returns a bitmask representing the currently available disk drives.
_mkdir、_wmkdir_mkdir, _wmkdir 创建新目录Make new directory
_rmdir、_wrmdir_rmdir, _wrmdir 移除目录Remove directory
_searchenv、_wsearchenv_searchenv_s、_wsearchenv_s_searchenv, _wsearchenv, _searchenv_s, _wsearchenv_s 在指定路径中搜索给定的文件Search for given file on specified paths

另请参阅See Also

按类别分的运行时例程 Run-Time Routines by Category
文件处理 File Handling
系统调用System Calls