Check that file exists: Difference between revisions
m
→{{header|VBScript}}: indentation - but these If/Then are totally useless, and so are these functions: calling FSO.FileExists(name) is equivalent to this FileExists(name)
m (→{{header|VBScript}}: indentation - but these If/Then are totally useless, and so are these functions: calling FSO.FileExists(name) is equivalent to this FileExists(name)) |
|||
Line 2,220:
=={{header|VBScript}}==
<lang vbscript>Set FSO = CreateObject("Scripting.FileSystemObject")
Function FileExists(strFile)
FileExists =
Else
FileExists =
End If
End Function
Function
FolderExists = True
Else
Folderexists = False
End If
End Function
'''''
'
'
'Else
'
'
'
If CreateObject("Scripting.FileSystemObject").FileExists("d:\test.txt") Then
|