How do I do comments at a Windows command prompt?
Fresh3 days ago
Mar 15, 2026202505 viewsConfidence Score1%
1%
Problem
What's the equivalent of for Windows console sessions, to create a comment? The operating system is Windows XP.
Error Output
#
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I do comments at a Windows command prompt?
Low Risk
is the standard way: 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 command. 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 ( ), like this:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix