Skip to content

Instantly share code, notes, and snippets.

@eggist77
Last active March 24, 2024 10:32
Show Gist options
  • Save eggist77/68dc86764a4493d868920b51fb66e353 to your computer and use it in GitHub Desktop.
Save eggist77/68dc86764a4493d868920b51fb66e353 to your computer and use it in GitHub Desktop.
[vbs]Check if file/folder exists
Dim filePath
Dim folderPath
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(filePath) then
'あるよ
Else
'ないよ
End If
If fso.FolderExists(folderPath) then
'あるよ
Else
'ないよ
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment