I know this may be a stupid question, but I've googled
around, searched MSN groups, and this forum and can't
find an answer.

I need to get user input from the console, not using
InputBox. I want to make a function, such as "readln"
that will give the user a prompt and return their answer
as a string or integer. VBScript must be able to do
this. Is my assumption bad?

Re: User input via console by Austin

Austin
Sat Feb 28 05:57:35 CST 2004

Why not "InputBox" ? It's designed to capture user input
for use within the script.

http://www.borncity.com/WSHBazaar/WSHInput.htm
http://www.borncity.com/WSHBazaar/WSHInput1.htm
http://www.borncity.com/WSHBazaar/WSHEnvironment.htm


Austin M. Horst

Re: User input via console by Steve

Steve
Sat Feb 28 08:00:01 CST 2004

Jeff wrote:
> I know this may be a stupid question, but I've googled
> around, searched MSN groups, and this forum and can't
> find an answer.
>
> I need to get user input from the console, not using
> InputBox. I want to make a function, such as "readln"
> that will give the user a prompt and return their answer
> as a string or integer. VBScript must be able to do
> this. Is my assumption bad?

StdIn Property
http://msdn.microsoft.com/library/en-us/script56/html/wsprostdin.asp

Download Windows Script Documentation
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9

--
Steve

There are no passengers on spaceship earth. We are all crew. -Marshall McLuhan



Re: User input via console by Jeff

Jeff
Sun Feb 29 22:34:00 CST 2004

When using StdIn the characters typed by the user aren't echoed to the
console. Is that by design?


"Steve Fulton" <cerberus40@hotmail.com> wrote in message
news:OkJH9Mg$DHA.1792@TK2MSFTNGP12.phx.gbl...
> Jeff wrote:
> > I know this may be a stupid question, but I've googled
> > around, searched MSN groups, and this forum and can't
> > find an answer.
> >
> > I need to get user input from the console, not using
> > InputBox. I want to make a function, such as "readln"
> > that will give the user a prompt and return their answer
> > as a string or integer. VBScript must be able to do
> > this. Is my assumption bad?
>
> StdIn Property
> http://msdn.microsoft.com/library/en-us/script56/html/wsprostdin.asp
>
> Download Windows Script Documentation
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9
>
> --
> Steve
>
> There are no passengers on spaceship earth. We are all crew. -Marshall
McLuhan
>
>



Re: User input via console by Steve

Steve
Mon Mar 01 06:58:53 CST 2004

Jeff wrote:
> When using StdIn the characters typed by the user aren't echoed to the
> console. Is that by design?

??? They are when I use it.

--
Steve

America is the only country that went from barbarism to decadence without
civilization in between. -Oscar Wilde