@echo off
set "RADmainDir=C:\Program Files (x86)\Embarcadero\Studio\20.0\"
set "patchList[0]=bin\dsymlink.exe"
set "patchList[1]=bin\themeloader260.bpl"
set "x=0"
:SymLoop
if defined patchList[%x%] (
IF EXIST "%RADmainDir%%patchList[%x%]%" (
echo:OK
) ELSE (
echo:MISSING
)
set /a "x+=1"
GOTO :SymLoop
)
The "if defined" part works. But the "if exist" part doesn't. It seems like that the variable x is a probleme there. How can i solve this problem ?
Output:
"C:\Program Files (x86)\Embarcadero\Studio\20.0\x" MISSING