|
-
Jun 28th, 2004, 12:34 PM
#1
Thread Starter
Lively Member
search for specific file [RESOLVED]
I know i posted earlier about searching. but that was for searching multi files.
i need a simple command or function (in module would be nice) that would check to see if a file exists or not and return a value depending on whether or not it exists. It would also be helpful to be as simple as possible. Only one directory should be checked, and no subdirectories needed .
Any help would be well appreciated. Thanks.
Last edited by deranged; Jun 28th, 2004 at 01:11 PM.
-
Jun 28th, 2004, 12:38 PM
#2
Fanatic Member
If you know the directory that has to be searched, I am fairly sure you can use the dir command like this
VB Code:
If Dir ( FilePath ) <> "" then
FileExists
End If
-
Jun 28th, 2004, 12:39 PM
#3
Banned
VB Code:
function DirExist(path as string) as boolean
let direxist = (dir(path, vbdirectory) <> "")
end function
-
Jun 28th, 2004, 01:10 PM
#4
Thread Starter
Lively Member
Thank you both. Resolved.
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
|