Windows Code to Parse MS-DOS Environment Variables (68647)



The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) 3.0
  • Microsoft Windows Software Development Kit (SDK) 3.1

This article was previously published under Q68647

SUMMARY

PATH is a sample application for the Windows environment that demonstrates how to parse MS-DOS environment variables. PATH will accept any environment variable and the name of a file. A search path is a null-terminated string that consists of a sequence of directory specifications separated by semicolons (;). PATH searches for the named file by searching each directory (one directory at a time) in the order in which the directories are listed in the environment variable.

MORE INFORMATION

The following files are available for download from the Microsoft Download Center:


Path.exe

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.


Modification Type:MinorLast Reviewed:8/4/2004
Keywords:kb16bitonly kbfile kbsample KB68647