Prompt for String in Batch File

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.help_and_support (More info?)

Are there any utilities that I can use if a batch file that will prompt the
user to enter a string and store the value in an environment variable that
are XP compatible/
 

GTS

Distinguished
Aug 24, 2003
520
0
18,980
Archived from groups: microsoft.public.windowsxp.help_and_support (More info?)

In XP you can use the SET /P variable=[promptString]

Example:

@Echo Off
Set /P UName= Username:
Set /P UPass= Password:

Echo User Name = %UName%
Echo Password = %UPass%
--

"John Ward" <MTPEDLNPQSLA@spammotel.com> wrote in message
news:OG3mUAtOFHA.2728@TK2MSFTNGP15.phx.gbl...
> Are there any utilities that I can use if a batch file that will prompt
> the
> user to enter a string and store the value in an environment variable that
> are XP compatible/
>
>