I need my cancel button to exit the script.
I tried adding:
and it didn't work.
I tried adding:
Code:
If strAnswer = "" Then
Wscript.QuitCode:
Function Help
Dim namesegment, folderSpec, file
GetUserInput folderSpec, "Please enter the unc path to the source folder", scriptBaseName, "C:\Help"
End If
If objFSO.FolderExists(folderSpec) Then
For Each file In objFSO.GetFolder(folderSpec).Files
LogToFile scriptPath & "\" & scriptBaseName & ".txt", File.Name
Next
End If
End Function