i'd like to test if %PROGRAMFILES(X86)%\Folder exists but it seems like if EXIST doesn't like environment variables :/
my way would be :
if EXIST %PROGRAMFILES(X86)%\Folder (
set VAR=%PROGRAMFILES(X86)%\Folder
)
no matter how i try, it always outputs false...
if EXIST "%PROGRAMFILES(X86)%\Folder" (
set "VAR=%PROGRAMFILES(X86)%\Folder"
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With