Question : vba check if file exists
Answered by : daniel-ferry
Public Function IsFile(s) IsFile = CreateObject("Scripting.FileSystemObject").FileExists(s)
End Function
Source : https://stackoverflow.com/questions/16351249/vba-check-if-file-exists/61005178#61005178 | Last Update : Fri, 10 Apr 20
Question : vbs check if file exists
Answered by : josiah
Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("C:\myFolder\newFile.txt") Then 'Perform Code
End If
Source : https://stackoverflow.com/questions/22387719/how-to-check-if-a-file-exists-with-vbscript | Last Update : Mon, 18 Jan 21