![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-09-13 22:45 |
共 47,812 主题排行 / 349,916 发帖 / 今日 0 篇 / 48,268 会员排行 |
| 论坛回收站 » 开机检测,各位给点意见 |
| 可打印版本 1,805 / 1 |
| 第1楼 lzbow | 发表于 2010-04-14 20:29 |
| 初级用户 发帖 13 积分 23 | |
|
开机检测,各位给点意见 @echo off
tasklist >%windir%\temp\task.txt type %temp%\task.txt|find "Clsmn.exe" if "errorlevel"=="0" goto exit if "errorlevel"=="1" goto clsmn :exits del /q %windir%\temp\*.* exit :clsmn start %system32%\clsmn.exe del /q %windir%\temp\*.* exit [ Last edited by lzbow on 2010-4-15 at 09:01 ] |
|
| 第2楼 Hanyeguxing | 发表于 2010-04-14 21:28 |
| 银牌会员 发帖 897 积分 1,039 来自 在地狱中仰望天堂 | |
|
1,既然两个标签都运行del /q %windir%\temp\*.* ,不如就把他放上面,不放在标签里
2,tasklist直接可查询Clsmn.exe,也可以省略所有的del命令,因为没必要生成临时文件 3,goto 到的批处理最后一行直接就结束了,没必要在最后面使用exit 4,默认环境变量里是没有%system32%的 5,goto exit和:exits,至少有一个标签名写错了 整个批处理直接这样写就可以: 或 [ Last edited by Hanyeguxing on 2010-4-14 at 21:31 ] |
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |