Check that file exists: Difference between revisions
Content added Content deleted
({{header|Visual Basic}}) |
|||
Line 2,244: | Line 2,244: | ||
'end if |
'end if |
||
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' |
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' |
||
'Shortest version |
|||
If CreateObject("Scripting.FileSystemObject").FileExists("d:\test.txt") Then |
|||
Wscript.Echo "File Exists" |
|||
Else |
|||
Wscript.Echo "File Does Not Exist") |
|||
End If |
|||
</lang> |
</lang> |
||