Master.bat coding errors!
I have run into a snag, can anyone help?
@ECHO OFF
:: START install
start /wait install.exe
set /p _setupdir=What was the directory you specified in the INSTALL program? EG "C:\Program Files\Civ3" Make sure to use "" marks:
cd %_setupdir%
IF EXIST setup.bat (
:: START decom
start %_setupdir%\setup.bat
) ELSE (
echo incorrect directory.
echo try again.
)
:: Stop
set _setupdir=
pause
basically I want it to work kinda like this:
{run install.exe}
{ask what the dir was in the install file, answer is saved in a variable}
{if setup.bat exists in the dir location, execute setup.bat in that dir}
{if not, re ask question (loop but I dont know how)}
{clear variables}
{pause}
like I said, can anyone help?

