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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help with command line arguments

Status
Not open for further replies.

stevesilvers

Programmer
Jun 2, 2004
3
US
I can't seem to find an answer to this anywhere so I'm hoping someone here can help me quickly.

How can I ask multiple quesitons from the command line and keep the script going. For instance the first time the script is run:

>cscript gatherinfo.vbs

Please enter your first name:
(Bill)
Please enter your last name:
(Smith)
etc...

I want to ask questions one at a time and not:

>cscruot gatherinfo.vbs Bill Smith etc...

Can this be done in VBScript? If so please show example.

Thanks in advance...

Steve
 
Look at the documentation for the InputBox function.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Then look at WScript.STDIN.ReadLine

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top