QuickBasic Program to Get Current Drive Using FILES & SCREEN (71525)
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 for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
This article was previously published under Q71525 SUMMARY
The program below uses error trapping, the FILES statement, and the
SCREEN function to get the default (current) drive from a Microsoft
QuickBasic program.
This information applies to Microsoft QuickBasic versions 4.00, 4.00b,
4.50; and to Microsoft Basic Compiler versions 6.00 and 6.00b for
MS-DOS. The program will also work correctly in Microsoft Basic
Professional Development System versions 7.00 and 7.10, but Basic PDS
contains a CURDIR$ function that returns a string that can be parsed
to get the current drive information without using the steps below.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB71525 |
---|
|