QB 4.x/Basic 7.x Example to List Subdirectories in Given Path (83811)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- 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 Q83811 SUMMARY
This article demonstrates how to obtain a list of all subdirectories
for a given path using the CALL INTERRUPT and CALL INTERRUPTX
routines. In this example, the Basic INTERRUPT routines invoke MS-DOS
interrupt service calls (SetDTA, FindFirst, and FindNext) to retrieve
all files in the specified directory. As each file is retrieved, its
attributes are checked to determine if the file is a subdirectory. If
the file is a subdirectory, then the directory name is displayed.
REFERENCES
"Microsoft MS-DOS Programmer's Reference," Microsoft Press, 1991
"Advanced MS-DOS Programming," (Second Edition) by Ray Duncan,
Microsoft Press, 1988
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB83811 |
---|
|