- Aug
- 2,028
- 82
The following .CMD works properly when run from CMD.EXE, and output is displayed;
You can substitute "owing.txt" with a text file of your choosing.
When I run this from TCC, no output is displayed.
When I run this from CMDebug v22.00.42 x64 with Options -> CMD Syntax, it runs, but no output is displayed.
Joe
Code:
@setlocal
@echo off
ver
setlocal enabledelayedexpansion
for /f "tokens=*" %%A in ('type "owing.txt"') do (
set /a N += 1
set "Line!N!=%%A"
)
for /l %%i in (1 1 %N%) do echo !Line%%i!
endlocal
You can substitute "owing.txt" with a text file of your choosing.
When I run this from TCC, no output is displayed.
When I run this from CMDebug v22.00.42 x64 with Options -> CMD Syntax, it runs, but no output is displayed.
Joe