Scripting in XP

  • Thread starter Thread starter ams
  • Start date Start date
A

ams

Does anyone know how to, in a batch script, to capture a
value that the user has typed in and store to in a
variable?
 
ams said:
Does anyone know how to, in a batch script, to capture a
value that the user has typed in and store to in a
variable?

Hi

set /p can be used:

@echo off
set /p FOLDER=Enter the folder path:
echo %FOLDER%
pause


If you want a windows dialog box from your batch file, you can use freeware
utilities for this:

Batch Utilities & Tools
http://home.mnet-online.de/horst.muc/main.htm

- and -

Batch Query
http://wettberg.home.texas.net/freeware.htm


Batch Query - The program provides a way to produce Windows dialogs to ask
questions or provide information during logon script or batch file processing.
The included "example.bat" shows each type of dialog produced.
 
-----Original Message-----


Hi

set /p can be used:

@echo off
set /p FOLDER=Enter the folder path:
echo %FOLDER%
pause


If you want a windows dialog box from your batch file, you can use freeware
utilities for this:

Batch Utilities & Tools
http://home.mnet-online.de/horst.muc/main.htm

- and -

Batch Query
http://wettberg.home.texas.net/freeware.htm


Batch Query - The program provides a way to produce Windows dialogs to ask
questions or provide information during logon script or batch file processing.
The included "example.bat" shows each type of dialog produced.



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


.
That worked GREAT!!!!! Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top