@echo off
setlocal enabledelayedexpansion
set chk=tru
set final=c:\users\user1\desktop
set var=c:\users\user1\desktop
for %%s in (%final%) do (
echo %%s
echo %var%
if %var%==%%s set chk=false
echo %chk%
)
the two strings are the same but the if statment wont excute the set command and change the chk variable. can someone please help? im new to batch scripting and i dont understand why this dosent work. i think its a technical matter i just dont know about