home *** CD-ROM | disk | FTP | other *** search
- '=======================================================================
- '= File: RemoveURL.vbs
- '= Notes:
- '= Remove file(s) using wildcard
- '=======================================================================
-
- Sub RemoveURL()
- Dim fserv
- Set fserv = CreateObject("CuteFTPPro.TEConnection")
-
- ' set some default values for the following prompts
- strHost = "ftp.cuteftp.com"
- strPath = "/pub/cuteftppro/"
- strWCrd = "*.*"
-
- ' ask user for values
- strHost = InputBox("Enter host", "CuteFTP Pro", strHost)
- strPath = InputBox("Enter remote path", "CuteFTP Pro", strPath)
- strWCrd = InputBox("Enter filename to delete (wildcards allowed)", "CuteFTP Pro", strWCrd)
-
- fserv.Host = strHost
- fserv.RemoteFolder = strPath
- nUserChoice = MsgBox ("Remove: " & strHost & strPath & strWCrd & "?", vbYesNoCancel)
- If nUserChoice = vbYes Then
- fserv.RemoteRemove strWCrd
- End if
-
- End Sub
-
- '=======================================================================
- '= Main
- '=======================================================================
- RemoveURL()
-