How do I get a VBScript to read the message box’s output after, first searching my computer for that output and second creating a new folder named after that output?
I am trying to create a VBScript that displays the current month/year, searches my computer for that month/year folder and if that folder doesnt already exist creates a new folder labeled after the current month/year displayed, here is what I have so far:
today = Date
Wscript.Echo “Month/Year: ” & Month(today)& “/” & Year(today)
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
If objFSO.FolderExists(“K:\ESInbox\backup\(& Month(today)& “/” & Year(today))”) Then
Wscript.Echo “Folder exists.”
Else
Wscript.Echo “Folder does not exist.”
End If