Thank you for that link Lee. It led me to a host of other links, and each page contained not only information relating to :: vs REM, but loads of other useful info that was new to me.
Mark's comment in this question:
http://www.experts-exchang
explains quite well where the issues arise and what they result in:
So the rules about :: comments in multi-line blocks seem to be:
1. Don't use two :: lines in a row - "The system cannot find the drive specified."
2. Don't use a :: as the last line in a block - ") was unexpected at this time."
3. Don't use a :: followed by an empty line - "The syntax of the command is incorrect."
Thanks again
Bill
Main Topics
Browse All Topics





by: leewPosted on 2008-12-09 at 03:06:56ID: 23128236
I believe SteveGTR did a test - and yes, :: is faster then REM in a 10K line batch file. But, in the grand scheme of things, is 2 seconds going to make that much of a difference in your batch file? The issue can come up if using them to comment within a loop - if I remember correctly. Please see: e.com/OS/ M icrosoft_O perating_S ystems/MS_ DOS/Q_2149 8411.html (not just the answer - this entire issue was hashed out as the question went on...)
http://www.experts-exchang