FG

How to overwrite the same line in command output from batch file

Fresh3 days ago
Mar 15, 202639638 views
Confidence Score0%
0%

Problem

I want to write some status info that replaces the last line when I do something. In following example bat file, I want the text to overwrite on the same line in the command output.

Error Output

echo off

echo Step 1
REM Do some stuff...

echo Step 2
REM do some other stuff...

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to overwrite the same line in command output from batch file

Low Risk

This script will do exactly what you asked: I found this answer by looking at the code in a batch script character manipulation library written by Dave Benham called CharLib. This library is able to create all characters in the range 1..255. For mor…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment