VBScript To Check If Folder Exists

VB Script to check if a folder exists. Uses the FileSystemObject to check if the folder you supply exists. Note that you need to supply the full path before you can check if it exists

Its easy enough to extend this to create the folder if it doesn’t exist

Dim objFSO

Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists("C:\Putyourfolderhere") Then
    MsgBox "Yep its there!"
    MsgBox "Nope its not!"
End If