07-05-2008, 01:59 AM
To only "see" the files, you can use the SHELL statement Roy mentioned. For instance, to see the directory of my QB files, which are in the same directory as my QB.exe files, I can use
SHELL "DIR/P"
The SHELL statement let's me use DOS commands, such as DIR, including its switches, such as /P, which let's one scroll the directory, one page at a time.
Notice that the syntax is
SHELL string
so the string part has to be either an actual string, such as "DIR/P", or a string variable, such as direct$ = "DIR/P"; in the case of a string variable, use
SHELL direct$
To see the directory of My Documents, use
SHELL "c:\MyDocu~1/p"
in accordance with the DOS method of seeing filenames with more than 8 characters.
Look in the Help, Syntax, SHELL statement for more information on this.
SHELL "DIR/P"
The SHELL statement let's me use DOS commands, such as DIR, including its switches, such as /P, which let's one scroll the directory, one page at a time.
Notice that the syntax is
SHELL string
so the string part has to be either an actual string, such as "DIR/P", or a string variable, such as direct$ = "DIR/P"; in the case of a string variable, use
SHELL direct$
To see the directory of My Documents, use
SHELL "c:\MyDocu~1/p"
in accordance with the DOS method of seeing filenames with more than 8 characters.
Look in the Help, Syntax, SHELL statement for more information on this.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.