Getting Full EXEC Pathname from Environment Table Using PSP (43560)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
This article was previously published under Q43560 SUMMARY
In MS-DOS versions 3.00 and later, the full path of any executing
program is stored after the environment variables in the environment
segment that is found in the program segment prefix (PSP). This
article provides a description of how to extract the EXEC path and
gives an example of how to do this with Basic.
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | KB43560 |
---|
|