中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-10 15:48
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,255 会员排行
DOS批处理 & 脚本技术(批处理室) » [求助]绕过AutoRun
可打印版本  803 / 1
第1楼 evilangell 发表于 2008-12-01 22:03
初级用户 发帖 32 积分 32
[求助]绕过AutoRun
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"="%systemroot%\\system32\\cmd.first.bat"


将上面代码保存为A.REG导入后,

再在c:\windows\system32\下建个
cmd.first.bat批处理

然后我运行某个P处理(记为 B.bat )的时候会先调用这个cmd.first.bat批处理

我现在想怎么样双击
B.bat
的时候而不调用cmd.first.bat这个批处理

条件:
1). cmd.first.bat这个批处理的内容可以随便
2). 只有双击B.bat的时候不调用cmd.first.bat,而双击其它的批处理还是会调用cmd.first.bat的
3). 不可以用删除"AutoRun"="%systemroot%\\system32\\cmd.first.bat"这个键值来实现
第2楼 evilangell 发表于 2008-12-01 22:07
初级用户 发帖 32 积分 32
对第三点说明一下:
可以用双击批处理的时候来删除AutoRun"="%systemroot%\\system32\\cmd.first.bat
到批处理运行结束的时候再自动的将AutoRun"="%systemroot%\\system32\\cmd.first.bat写入注册表
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023