This is my following Code. I keep getting the error "Try again" even though my Mac Address is same. I somehow want to execute Exec.bat if the condition is true.By the way MacCheck.txt has my Mac address as 08-3E-8E-2C-DF-F7
@ echo off
SetLocal EnableDelayedExpansion
set content=
for /F "delims=" %%i in (MacCheck.txt) do set content=!content! %%i
rem %content%
SET Mac="08-3E-8E-2C-DF-F7 "
if "content" == "Mac" (start Exec.bat) else (echo "Try again")
EndLocal
pause
Aucun commentaire:
Enregistrer un commentaire