3.317 bytes

Service Hints & Tips

Document ID: DSET-3FA8Q4

PS/1-Aptiva - What is the PATH command?

Applicable to: World-Wide

The PATH command tells DOS where to look for executable files. When a command is typed at the DOS prompt, and it is not an internal DOS command, then the current directory is searched for the file. If it is not found, then the path is searched. This allows you to execute many files from anywhere on your hard drive.

One common example of this is the files in the C:\DOS directory. Without the PATH command, if you were in the WORKS directory and typed FORMAT A: to create a data disk, you would get a "Bad command or file name" message. But since you probably have the C:\DOS directory included in your PATH command, you can type FORMAT from anywhere on your hard drive, and it will be executed properly.

The PATH command will only look for files with the extensions .EXE, .COM or .BAT, also known as executable files.

To change the path of where your operating system would look for files, you would edit your AUTOEXEC.BAT file. An example of a PATH command is listed below.

PATH=C:\:C:\DOS;\C:\WINDOWS;

Search Keywords

DOS

Hint Category

DOS/Windows 3.x, Windows 95

Date Created

18-03-97

Last Updated

11-03-99

Revision Date

11-03-2000

Brand

IBM Aptiva

Product Family

Aptiva, PS/1

Machine Type

2134, 2136, 2137, 2138, 2140, 2142, 2144, 2159, 2161, 2162, 2168, 2176, 2011, 2121, 2123, 2133, 2155

Model

All

TypeModel

Retain Tip (if applicable)

Reverse Doclinks
and Admin Purposes