Showing posts with label vbs. Show all posts
Showing posts with label vbs. Show all posts

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!