Microsoft DOS path command

Quick links

About path
Additional Information

About path

Path is used to specify the location where MS-DOS looks when using a command. For example, when using the command "format", if the path is not specified to where the command is you will receive bad command or file name. See our path definition for a full explanation and examples of paths on computers.


The path command is an internal command that is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7
Windows 8


Displays or sets a search path for executable files.

PATH [[drive:]path[;...]]

Type PATH ; to clear all search-path settings and direct Windows to search
only in the current directory.
Type PATH without parameters to display the current path.



This is where many MS-DOS commands are stored for Window. If you cannot run a command try typing this command at the prompt to make the command line look in this directory for available commands. However, if you have another file in another directory such as C:\DOS it will no longer look there.

Additional information

DOS limits the path to 122 bytes. Every command is limited to 127 bytes; however, 127 - 5 (minus 5 because of PATH=) = 122.

Related pages