Permalink
Browse files

Check for user cancel of variable prompt dialog

  • Loading branch information...
ardentperf committed Sep 23, 2011
1 parent 76ec611 commit deaf9d894c7c94567e1fa1aa6d7c9993a413650c
Showing with 9 additions and 0 deletions.
  1. +9 −0 setupenv.bat
View
@@ -53,6 +53,15 @@ echo s/DEFAULT-SOURCEDIR/%SOURCEDIR%/ >>%TEMP%\UserIn.sed
sed "s/\\/\\\\/g" %TEMP%\UserIn.sed >%TEMP%\UserIn2.sed
sed -f %TEMP%\UserIn2.sed input.hta >%TEMP%\UserIn.hta
start /w %TEMP%\UserIn.hta
+if not exist %TEMP%\UserIn.bat (
+ echo ERROR: user canceled input dialog!
+ pause
+ del %TEMP%\DetectVars.bat
+ del %TEMP%\UserIn.sed
+ del %TEMP%\UserIn2.sed
+ del %TEMP%\UserIn.hta
+ exit 1
+)
call %TEMP%\UserIn.bat
del %TEMP%\DetectVars.bat

0 comments on commit deaf9d8

Please sign in to comment.