CmdID

CmdID / Commands

path

Sets the command path in the PATH environment variable, specifying the set of directories used to search for executable (.exe) files. Windows commands reference

On Windows, DOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Sets the command path in the PATH environment variable, specifying the set of directories used to search for executable (.exe) files. If used without parameters, this command displays the current command path. - The Windows operating system searches using default file name extensions in the following order of precedence: .exe, .com, .bat, and .cmd. Which means if you're looking for a batch file named, acct.bat, but have an app named acct.exe in the same directory, you must include the .bat extension at the command prompt. - If two or more files in the command path have the same file name and extension, this command first searches for the specified file name in the current directory. Then, it searches the directories in the command path in the order that they're listed in the PATH environment variable. - If you place the path command in your Autoexec.nt file, the Windows operating system automatically appends the specified MS-DOS subsystem search path every time you log on to your computer. Cmd.exe does not use the Autoexec.nt file. When started from a shortcut, Cmd.exe inherits the environment variables set in My Computer/Properties/Advanced/Environment.

path [[<drive>:]<path>[;...][;%PATH%]]
path ;

To search the paths c:\user\taxes, b:\user\invest, and b:\bin for external commands, type

path c:\user\taxes;b:\user\invest;b:\binIdentify
[<drive>:]<path>Specifies the drive and directory to set in the command path. The current directory is always searched before the directories specified in the command path.
;Separates directories in the command path. If used without other parameters, ; clears the existing command paths from the PATH environment variable and directs Cmd.exe to search only in the current directory.
%PATH%Appends the command path to the existing set of directories listed in the PATH environment variable. If you include this parameter, Cmd.exe replaces it with the command path values found in the PATH environment variable, eliminating the need to manually enter these values at the command prompt.
/?Displays help at the command prompt.

Windows

from tldr-pages, CC BY 4.0

Display or set the search path for executable files.

Display the current path

Set the path to one or more semicolon-separated directories

path path\to\directory1 path\to\directory2 ...Identify

Append a new directory to the original path

path path\to\directory;%path%Identify

Set command prompt to only search the current directory for executables

path ;Identify

Display or set the search path for executable files. This command is available in FreeDOS only.

Display the current search path

Set the semicolon-separated list of directories to search in

PATH path/to/directory1;path/to/directory2;...Identify

Append a directory to the search path

PATH %PATH%;path/to/directoryIdentify

Add a directory to the beginning of the search path

PATH path/to/directory;%PATH%Identify

Clear the search path

Display help

PATH /?Identify
/?Displays help at the command prompt. Windows commands reference