What's the equivalent of # for Windows cmd console sessions, to create a comment?
The operating system is Windows XP.
|
What's the equivalent of The operating system is Windows XP.
| ||||
|
feedback
|
|
You could also use the double-colon convention commonly seen in batch files:
A single colon followed by a string is a label, but a double colon and anything after it are silently ignored. One could argue that this form is more legible than the Note that both of these methods only work at the beginning of a line. If you want to append a comment to a command, you can use them with the command concatenation character (
| |||||
feedback
|
|
You prefix your comment with the word REM.
But if you want your comment printed back to you, you should echo it:
| |||
feedback
|
cmd.exein Windows is not DOS - it's a full Windows application which just has a similar syntax to that ofcommand.com– grawity Dec 12 '09 at 11:53