SAMPLE: Windows Code to Parse MS-DOS Environment Variables

ID: Q68647

The information in this article applies to:

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 file is available for download from the Microsoft Software Library:

 ~ PATH.EXE (size: 23055 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from
               Online Services

Additional query words: softlib PATH.EXE
Keywords          : kbsample kb16bitonly kbWinOS310 kbWinOS300 KrIsrTsr 
Version           : 3.00 3.10
Platform          : WINDOWS

Last Reviewed: December 12, 1998