Write a batch script that creates a console output which indicates processing to the user
- User
Write a batch script that creates a console output which indicates processing to the user
- Assistant
@echo off echo Processing... :: Your processing code goes here echo Processing complete.
- User
Use something more fancy
- Assistant
@echo off setlocal enableDelayedExpansion set "loading=Processing" set "lading=..."
for /L %%A in (1,1,3) do ( cls echo !loading:~0,-%%A!!lading:~0,%%A! timeout /t 1 /nobreak >nul )
echo | | | | | | | | | echo / / /| | / /| | | | / /| |_ echo / // | | / /| | | | / /| |
echo |/|| || |_| |__| () echo. & echo Processing...:: Your processing code goes here
echo Processing complete. pause >nul exit
- User
Doesn't work
- Assistant
I apologize for the mistake. Here's a corrected version:
@echo off setlocal enableDelayedExpansion set "loading=Processing" set "lading=..."
for /L %%A in (1,1,3) do ( cls echo !loading:~0,-%%A!!lading:~0,%%A! timeout /t 1 /nobreak >nul )
echo Processing...
:: Your processing code goes here
echo Processing complete. pause >nul exit