
CODE: [Copy to clipboard]这段代码判断批处理是否被改过,如改过,则执行其他代码。@echo off
rem test
find /n "batch" %0>tttt.txt
for /f "delims=]" %%a in (tttt.txt) do (set str=%%a)
if not %str:~1%==8 goto test
rem test
rem test
ECHO The batch file is OK!
pause &exit
:test
echo Someone modify the file!!!
pause
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |