I found this program http://baiyunmanor.com/blog/work/get-current-date-time-in-dos-batch-file/
But I don't know what does the line
:: datetime.bat
at the end mean?
I found this program http://baiyunmanor.com/blog/work/get-current-date-time-in-dos-batch-file/ But I don't know what does the line
at the end mean? |
||||
|
There are some differences between them. The main ones are:
|
|||
|
A line that start in double colon represent an invalid label that is ignored by the command processor, so it may be used to insert a comment. For reasons that can't be traced, many people use Any line that contain an invalid label will be ignored by the command processor and you may use practically any special character to generate an invalid label. For example:
|
|||
|
A line starting with a colon is a label which you can jump to with
A line starting with a double colon is a label, except you can't, even accidentally, jump to it:
Thus, double colon is used to comment lines out. |
|||
|
The colon (:) is a label marker and can be used for got instructions. Some people use : as a comment too so a double colon is simply a stylistic REM statement |
|||
|