PATH
(path)
为可执行文件显示或设置一个搜索路径。
PATH [[drive:]path[;...][;%PATH%]
PATH ;
键入 PATH ; 清除所有搜索路径设置并指示 cmd.exe 只在当前目录中搜索。
键入 PATH 但不加参数,显示当前路径。
将 %PATH% 包括在新的路径设置中会将旧路径附加到新设置。
★★★★★实例★★★★★:
以下命令为MS-DOS指定三个搜索目录(三个目录路径为:C:\USER\TAXES、
B:\USER\INVEST和B:\BIN):
path
c:\user\taxes;b:\user\invest;b:\bin
Displays or sets a search path for
executable files.
PATH [[drive:]path[;...][;%PATH%]
PATH ;
Type PATH ;
to clear all search-path settings and direct cmd.exe to search only in the
current directory.
Type PATH without parameters to
display the current path.
Including %PATH% in the new path
setting causes the old path to be appended to the new
setting.