This is probably the exact opposite of this question.
Anyways, I have a batch file with such content:
a.bat
@echo %random%
And I tries to read the a.bat through another batch file:
for /f "delims=" %%p in ('dir *.bat') do (
rem loop through files
for /f "delims=" %%q in ('type %%~p') do echo %%q
) 2>nul
And it outputs:
@echo (random number)
How can I make it outputs @echo %random%
? Any help will be appreciated.