|yeh, the "set /p" should hang for an input, unless something is feeding into it via a redirect, such as:|
set /p x=<file.txt
which would not hang if there is one crlf in file.txt. I would try putting a pause immediately before and after the "set" statement, to try and get some error message output before the window closes. (As microsoft advances, batch-support and cmd support seem to decline. Win-7 does not allow "full-screen" mode, which is my most comfortable zone.) ANYway, once the window closes, you can no longer see any errormsg which flash quickly, without a "pause" or else sending &2 output to a logfile.