I have problem with batch. I want to create new dir and save file to it everytime batch is opened
This is sample of my code
SET i=0
FOR /L %%i IN (0,1,100) DO (
IF NOT EXIST res\%%i (
mkdir res\%%i
GOTO run
)
)
:run
start X.exe /stext res\%i%\X.txt
Creating folders works properly. I have problem with
start X.exe /stext res\%i%\X.txt
Thanks