Change a batch file in a another batch file

July 26, 2011 at 15:40:08
Specs: Windows 7
lets i have a batch file with the following code

set /p input= "Input Arming Passcode:"
if %input%== dp01arm01

so what i need to do be able to change the exsisting "if %input%== " 's value to a new one through another batch file. any help?
thanks in advance!


See More: Change a batch file in a another batch file

Report •

#1
July 27, 2011 at 08:33:39
::first batch file
::sets password
set /p password="enter new password:"
ECHO %password% > C:\PASSWORDFILE.TXT
goto eof

::compares password to input
set /p input= "Input Arming Passcode:"
if %input%== < C:\PASSWORDFILE.TXT goto nexttag
goto eof

:nexttag

::whatever the program wants to do next goes here

goto eof

::hope this helps

mike


Report •

#2
July 27, 2011 at 11:06:02
thats kinda of what im wanting but i need it to change the existing script with another batchfile.

like when i type "change password" on my program
i want another program to pop up i enter in my new password and press enter and it returns to my existing program with the new password


Report •
Related Solutions


Ask Question