zqz0012005 (smile)当前离线
假装是个高手
荣誉版主
@echo off >a.txt echo " set var=" setlocal EnableDelayedExpansion for /f %%a in (a.txt) do ( if %var:"=quote%==quote echo equal if "%var:"=quote%"=="quote" echo equal rem if !var:"=quote!==quote echo equal rem if "!var:"=quote!"=="quote" echo equal if "%%a"=="!var!" echo equal rem if "%%a"=="%var%" echo equal rem 注释掉的语句会出错 ) pause复制代码
TOP