CopyPastor

Detecting plagiarism made easy.

Score: 0.7669996619224548; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-08-24
by Somnath Muluk

Original Post

Original - Posted on 2012-06-29
by fvu



            
Present in both answers; Present only in the new answer; Present only in the old answer;

##Multi line comments
If there are large number of lines you want to comment out then it will be better if you can make multi line comments rather than commenting out every line.
The batch language doesn't have comment blocks, though there are ways to accomplish the effect.
GOTO EndComment1 This line is comment. And so is this line. And this one... :EndComment1
You can use `GOTO` Label and :Label for making block comments.
Or, If the comment block appears at the end of the batch file, you can write `EXIT` at end of code and then any number of comments for your understanding.
@ECHO OFF REM Do something REM End of code; use GOTO:EOF instead of EXIT for Windows NT and later EXIT Start of comment block at end of batch file This line is comment. And so is this line. And this one...
[Comments Source](http://www.robvanderwoude.com/comments.php)
No, plain old batch files use `REM` as a comment. `ECHO` is the command that prints something on the screen.
To "comment out" sections of the file you could use `GOTO`. An example of all these commands/techniques:
REM it starts here the section below can be safely erased once the file is customised ECHO Hey you need to edit this file before running it! Check the instructions inside ECHO Now press ctrl-c to interrupt execution or enter to continue PAUSE REM erase the section above once you have customised the file python executed1.py ECHO Skipping some stuff now GOTO End python skipped1.py python skipped2.py :END python executed2.py
What can I say? batch files are a relic of times long gone, they're clunky and ugly.
You can read more [on this website][1].
EDIT: modified the example a bit to have it contain the elements you are apparently looking for.
[1]: http://www.robvanderwoude.com/batchfiles.php

        
Present in both answers; Present only in the new answer; Present only in the old answer;