Wednesday, November 10, 2010

Getting input from user in VBS script

If you need to get some input from a user (from a CMD prompt) to store in a variable, use:

Wscript.StdOut.Write "Enter text: "
strVariable = Wscript.StdIn.ReadLine

Easy!

No comments:

Post a Comment