💻 Software
When running bat files, how to show commands but not "rem"ed out lines?
Fresh5 days ago
Mar 15, 20264553 viewsConfidence Score0%
0%
Problem
When running a bat file, I'd like to see the commands being executed but not anything rem'ed out. The problem is that it seems to be all or nothing. When using "echo off" nothing shows except the results of the commands, like "2 files copied". But when not using echo off, everything, including line…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: When running bat files, how to show commands but not "rem"ed out lines?
Low Risk
Regardless of the ECHO setting within a batch file, any line that starts with the character will not print out. To prevent the REM lines from being displayed, leave ECHO ON ad put in front of the REM lines so that they would be:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix