Name: albert2u Date: June 20, 2007 at 19:40:10 Pacific Subject: How to store and retrieve values? OS: Windows2000 CPU/Ram: Pentium Xeon Model/Manufacturer: Dell
Comment:
Hi,
I had wrote some lines to get the user inputs in win2k dos prompt. But how can i store in a temp file and retrieve it and pass it in to another batch file for anohter process?
@echo off set INPUT= set /P INPUT=Type input: %=% set /P INPUT2=Type input: %=% if "%INPUT%"=="" goto input echo Your input was: %INPUT% if "%INPUT2%"==""goto input echo Your input2 was: %INPUT2%
Can anyone help me in this. Appreciated very much.
m2,sorry about that, actually i will need to call anohter batch file.
@echo off set INPUT= set /P INPUT=Type input: %=% set /P INPUT2=Type input: %=% if "%INPUT%"=="" goto input echo Your input was: %INPUT% if "%INPUT2%"==""goto input echo Your input2 was: %INPUT2% Call process.bat
One question, if i do not want to store the values into a temp file. Can i just pass the captured values directly to another batch?
If it can't pass it like that, then i will need to store in a File.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE