That works perfectly. Thank you Squashman and Dbenham!
Search found 3 matches
- 22 Jun 2018 23:09
- Forum: DOS Batch Forum
- Topic: LABEL Being Processed without GOTO or CALL
- Replies: 13
- Views: 12491
- 22 Jun 2018 21:34
- Forum: DOS Batch Forum
- Topic: LABEL Being Processed without GOTO or CALL
- Replies: 13
- Views: 12491
Re: LABEL Being Processed without GOTO or CALL
Actually you probably want EXIT /B (terminate the batch file without killing the command process) instead of EXIT (kills the entire command process and closes the console window). EXIT /B is functionally identical to GOTO :EOF Won't that kill the loop though? Say if EXIT /B is specified at the end ...
- 22 Jun 2018 17:50
- Forum: DOS Batch Forum
- Topic: LABEL Being Processed without GOTO or CALL
- Replies: 13
- Views: 12491
LABEL Being Processed without GOTO or CALL
I have small batch that will try to map a migration folder on remote computers. My :ERRORMAPDRIVE label is being processed even it was not called or told to goto. I tested with 1 valid IP, it was successfully mapped, but the batch somehow still process the label making my error log is inaccurate. Ca...