Can I check why does my command prompt closes when i execute this line?
for /f "tokens=1 delims=: " %%A in ('call who') do set nowuser=%%A
The script is working fine on other system except one where the script exit abnormally. I debug the batch and found out this line causes the command prompt to close totally. Is there any settings i need to check for this particular system?
Many Thanks