Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Cancel Button Help

$
0
0
I need my cancel button to exit the script.

I tried adding:
Code:

    If strAnswer = "" Then
    Wscript.Quit

and it didn't work.

Code:

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


Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>