Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

[1] I don't see the label it's trying to GOTO.
[2] Once you've got the vars set, thay are available to other processes. Do you need them in FILEs?
=====================================
If at first you don't succeed, you're about average.M2

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.batOne 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.
Tqvm.
albert2u

::== bat1.bat
set name=abc
call bat2.bat
::==::== bat2.bat
@echo the name is %name%
::==
=====================================
If at first you don't succeed, you're about average.M2

![]() |
turn win2k into server
|
VPN with private home LAN...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |