How can I ignore error messages when opening files that don't exist...
for exmaple: Open FilePath For Input As #fnum.
The filePath=c:\file.ini, doesn't exist. I want to end sub...
how can I check if the file doesn't exist?
thanks
Printable View
How can I ignore error messages when opening files that don't exist...
for exmaple: Open FilePath For Input As #fnum.
The filePath=c:\file.ini, doesn't exist. I want to end sub...
how can I check if the file doesn't exist?
thanks
VB Code:
If Dir$("c:\file.ini") <> "" Then MsgBox "file exists" Else MsgBox "file doesn't exist" End If
Thanks Hack...
How can I set a variable to the text to the right of the =?
Ex: name=MyName...
I want a variable (NameVar) to be set to "MyName"...
Thanks
I'm not sure I understand what you mean. Do you mean storing the name of the file you are looking for in a variable, and then running it through the Dirs$ function?