1.

Solve : check if file exists in vb?

Answer»

How can I CHECK if a file exists with visual basic?VB6
Code: [Select] Dir("C:\test.txt")
vbscript
Code: [Select]set objFSO = CreateObject("Scripting.FileSystemobjecT")
objFSO.FileExists(FILEPATH)
...
THANKS for the reply, it helped. I ended up doing this:

Code: [Select]My.Computer.FileSystem.FileExists("C:\file.ext")



Discussion

No Comment Found