@echo off &setlocal DisableDelayedExpansion
set "file=account.txt"
set "fristline=Account1 : 9999999"
setlocal EnableDelayedExpansion
<"!file!" >"!file!.tmp~" (
for /f %%i in ('type "!file!"^|find /v /c ""') do for /l %%j in (2 1 %%i) do (
set "line=" &set /p "line="
echo(!line!
)
)
>>"!file!.tmp~" echo(!fristline!
move /y "!file!.tmp~" "!file!"
how to make this replace Account1 : 9999999 to frist line not last line