Find file with _ in it
Hello all,
I am trying to locate a file with an _ in it.
Here is what I have.
If (fso.FileExists("C:\WINDOWS\Progs_.ini")) Then
msgBox "C:\WINDOWS\Progs_.ini exists."
Else
msgBox "C:\WINDOWS\Progs_.ini doesn't exist."
End If
But I get C:\WINDOWS\Progs_.ini doesn't exist.".
I know its there, I put it there but if I remove the _ from the file name and from my code like this,
If (fso.FileExists("C:\WINDOWS\Progs.ini")) Then
'Kill "C:\WINDOWS\Progs.ini"
msg = "C:\WINDOWS\Progs.ini exists."
Else
msg = "C:\WINDOWS\Progs.ini doesn't exist."
End If
it works fine. Why?
Help!
|