It is *not* an array notation.
Maybe you understand better with
Code: Select all
set __somevar=abc
set __anothervar=123
It is *not* an array notation.
Code: Select all
set __somevar=abc
set __anothervar=123
Code: Select all
set __var1=abc
set __var2=123
Code: Select all
for /f "usebackq tokens=1 delims==" %%x in (`set __`) do set "%%x="
Code: Select all
@echo off&setlocal
for /d %%a in (*) do call :DEEPER "%%a"
goto :EOF
:DEEPER
for /r %1 %%b in (*) do echo "%%b"
goto :EOF
I did and .. thank you!Aacini wrote: ↑02 Feb 2022 14:04You may review the commands described under Table 3 at this SO answer...
Code: Select all
findstr /v /i /c:"</menu>" "PC Games.xml" > temp.xml
Code: Select all
@echo off & setlocal
for %%x in ("%__CD__%") do set "ThisVolume=%%~dx"
(
echo sel vol %ThisVolume%
echo attr disk
) | diskpart | ( findstr /i "Read-only : No" >nul && echo Disk is not protected!)