Page 1 of 1

Find file

Posted: Sat Aug 20, 2005 4:10 pm
by SebMcClouth
How can I find a certain file with PDS?

Not that good yet with PDS.

grtz
Seb

Posted: Sat Aug 20, 2005 5:27 pm
by Z!re
There's no easy way per say.. but:

Code: Select all

search$ = "*.BAS"
ret$ = DIR$(search$)
While ret$ <> ""
  Print ret$
  
  ret$ = DIR$()
Wend
Will find and list all .BAS files in the CURRENT directory..

DIR$() can take paths:
ret$ = DIR$("Somepath\What\Path\somefile.ext")

And as you can see, it can work without *


The DIR$() command exist on PDS only, not Q.B. 4.5