Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can VBScript prompt for user input? 2

Status
Not open for further replies.

atascoman

Technical User
Oct 10, 2003
868
US
Just curious about this or if an actual app has to be written in order to prompt a user for input that can be inserted in a variable for the script to use.
 
Yes, but I don't remember it off the top of my head. It's possible.

Iolair MacWalter
Network Engineer
 
Looks like InputBox is what I need to use. Checked out the link you posted, very helpful. It seems to be for HTML though. I am writing scripts to use for automating CLI programming for the equipment my company services.

My goal is to be able to prompt our installers when they run my script to enter a site ID number and a specific MDF/IDF closet number so they don't have to manually change the script code. Not a huge issue, just trying to make it as easy for them as possible during the install.

I don't understand how to take the input from the InputBox and store that in a variale that I can then use in the script.
 
yourVariable = InputBox("Enter a site ID number")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks to all for their help. Got it working. Here is a sample from my script in case anyone else needs this info.

Devname=InputBox("Enter Controller Name")
crt.Screen.WaitForString "("& Devname &") (config) #"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top