So i want to call all files in a directory with a variable in it and later echo the variable. The only problem i'm having is it won't echo out the variable. It just says ECHO OFF.
Here's my current code.
// THIS IS MY FOR LOOP.
@echo off
:Message
for %%i in (Soemthing\*.bat) do (
call %%i
echo %Message%
)
pause
exit
// THIS IS THE FILE I WANT IT TO CALL.
@echo off
set %Message%=Some message here.