|
-
January 26th, 2000, 11:34 PM
#1
Finding a file in a directory
Hi all
Can anybody give me an idea for Finding a file in a particular directory(incliding wildcards). I tried using FSO but it is not working with wildcards.
Thanks in advance
Venky
-
January 27th, 2000, 01:20 AM
#2
Re: Finding a file in a directory
Hi,
Hi Venky,
Finding a single file or Directory using (GetFile attributes)Win 32 API is possible. But if you use wild card search it will not work.
You have to give the full path of a file/ Directory in the API. If you need the code (very simple) I can send. FSO I have tried. But
in that case also if it is wild card search you won't get. It appears, basically you have to give individual file / directory path in any
case.
Bye,
satya
Email : [email protected]
-
January 27th, 2000, 02:10 AM
#3
Re: Finding a file in a directory
you can use VB's built-in Dir function:
dim strfile as string
strfile = Dir("c:\winnt\system32\*.dll")
do while strfile <> ""
debug.print strfile
strfile = dir
Loop
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|