Results 1 to 2 of 2

Thread: Cancel Button Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2014
    Posts
    2

    Cancel Button Help

    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

  2. #2
    Lively Member
    Join Date
    Dec 2010
    Location
    http://bbat.forumeiro.com/
    Posts
    86

    Question Your code is incomplete ??

    Hi
    I don't understand your issue, because your code is incomplete ??
    For more exact answer please share your full code, but not only couple of functions
    Thanks !


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width