So, I have added some stuff in cmd. I want there to be a progress bar using text, so that it is like [......... ], but when I type in CLS to clear the line and ECHO to rem
Use something like this:
@echo off
setlocal enableDelayedExpansion
:: Define CR to contain a carriage return (0x0D)
for /f %%A in ('copy /Z "%~dpf0" nul') do set "CR=%%A"
<nul set/p"=[*............]!CR!"
pause >nul
<nul set/p"=[**...........]!CR!"
pause >nul
<nul set/p"=[***..........]!CR!"
pause >nul
From here