In vbscript we can check whether a folder exists or not using the 'FolderExists' function of the File System Object. The syntax of FolderExists function is given below
FolderExists "FolderName"
The argument FolderName is the name of the folder to check.
Following example demonstrates how to check for the existence of a folder
Set FS = CreateObject("Scripting.FileSystemObject")
If FS.FolderExists "C:\Folder-1" Then
WScript.Echo("Folder Exists")
Else
WScript.Echo("Folder Does Not Exist")
End If