I have what I hope is a fairly easy question,
Basically I have a batch file which calls the setup.exe file for MSSQL and I would like to be able to detect if the setup ran successfully or abnormally terminated i.e the user canceled it.
Also would it be possible for the following:
1. bat file calls notepad.exe test.txt
2. test.txt doesn't exist, prompts user for creation of said file
3. user hit cancel
4. error code thrown and bat reports back
Any help you guys could provide would be great fully appricated.
cd c:\Documents and Settings\dev\Desktop\
start "" /wait setup.exe
if %SETUP_STATUS%==0 echo installation success
if not %SETUP_STATUS%==0 echo installation failed