
CODE: [Copy to clipboard]:: CountLog.bat - Counter of logon (Test code)
:: Will Sort - 2006/01/22 - CMD@WinXP
@echo off & setlocal
if not exist %temp%\_Countlog.bat goto Count
call %temp%\_Countlog.bat
:Count
set /a _countlog+=1
if "%_countlog%"=="20" goto CountOff
echo 第 %_countlog% 次登陆系统,忽略处理……
echo set _countlog=%_countlog% >%temp%\_Countlog.bat
goto :eof
:CountOff
echo.
echo 登陆系统满20次,执行相应处理……
echo.
goto :eof
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |