Originally posted by redtek at 2006-12-19 01:56:
另一种方法:
@echo off && set "access=NO"
for /f %%i in ('findstr /i "ACCESS" %temp%\CheckV.txt') do set access=%%i
echo %access%
pause
...
的确高明.先赋值的方法值得提倡.
Originally posted by redtek at 2006-12-19 01:56:
Another method:
@echo off && set "access=NO"
for /f %%i in ('findstr /i "ACCESS" %temp%\CheckV.txt') do set access=%%i
echo %access%
pause
...
Indeed ingenious. The method of assigning values first is worthy of promotion.