Still can't find the issue with this.
Can someone look at it and let me know.
Thanks
Thanks
John Fuhrman
Titan Global Services
faq329-6766
Can someone look at it and let me know.
Thanks
Code:
Function DriveSelect()
strDrive=InPutBox("Enter Drive Letter:","Search Drive")
Do Until strDrive <> ""
strDriveErr=MsgBox("Drive Letter Not Entered",69,"Missing Parameter")
Select Case strDriveErr
Case vbOK
wscript.echo = "OK was clicked"
Case vbCancel
wscript.echo "Cancel was clicked"
wscript.quit
Case vbAbort
wscript.echo "Abort was clicked"
Exit Do
Case vbRetry
wscript.echo "Retry was clicked"
strDrive=InPutBox("Enter Drive Letter:","Search Drive Retry")
Case vbIgnore
wscript.echo "Ignore was clicked"
Exit Do
Case vbYes
wscript.echo "Yes was clicked"
Case vbNo
wscript.echo "No was clicked"
Case Else
wscript.echo "Do Over"
wscript.quit
End Select
Loop
DriveSelect = Ucase(strDrive)
End Function
Function FileExtension()
strExtension=InPutBox("Enter File Name Extension to search for.","File Extension Search","MDB")
Do While strExtension = ""
strExtensionErr=MsgBox("File Extension Not Entered",69,"Missing Parameter")
Select Case strExtensionErr
Case vbOK
wscript.echo = "OK was clicked"
Case vbCancel
wscript.echo "Cancel was clicked"
wscript.quit
Case vbAbort
wscript.echo "Abort was clicked"
Exit Do
Case vbRetry
wscript.echo "Retry was clicked"
Exit Do
Case vbIgnore
wscript.echo "Ignore was clicked"
Case vbYes
wscript.echo "Yes was clicked"
Case vbNo
wscript.echo "No was clicked"
Case Else
wscript.echo "It's Broken"
wscript.quit
End Select
Loop
FileExtension = Ucase(strExtension)
End Function
DriveSelect()
wscript.echo DriveSelect
FileExtension()
wscript.echo FileExtension
wscript.quit
Thanks
John Fuhrman
Titan Global Services
faq329-6766