Last active
March 24, 2024 10:32
-
-
Save eggist77/68dc86764a4493d868920b51fb66e353 to your computer and use it in GitHub Desktop.
[vbs]Check if file/folder exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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