The command moved the cursor position to 4,0
Also, several special characters were displayed on the screen.
So, this code moves cursor position to 0,0.
Code: Select all
:: I don't know if this code will work in other environment.
@ECHO OFF
FOR /F %%A IN ('"ECHO PROMPT $H | CMD"') DO SET "BS=%%A"
FOR /F %%A IN ('"TIMEOUT 1 > CON"') DO REM
<NUL SET /P "PRINT=%BS%%BS%%BS%%BS%TESTED IN WIN 10"
PAUSE > NUL
Also, according to this table, that output was:
Code: Select all
[BS]0[TAB][CR]/F %A IN ('"TIMEOUT 1 > CON"') DO REM
[TAB][CR]Waiting for 1 seconds, press a key to continue ...
EDIT: "CMD /C TIMEOUT 1 > CON" seems to work like "FOR /F %A IN ('"TIMEOUT 1 > CON"') DO REM". Tests on CMD.