无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2312|回复: 3
打印 上一主题 下一主题

求助一条关于pecmd运行bat的命令。

[复制链接]
跳转到指定楼层
1#
发表于 2011-2-13 14:43:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    我想在pe中加载迅雷需要运行绿化.bat,手动运行此bat后会弹出确定对话框,我想在后台运行此bat该如何写这条命令,我试着写了一条但无法加载,如下EXEC @"%ProgramFiles%\Thunder\绿化.bat",放在_SUB SetOther下,不知道是写错了还是放的位置不对,特求助各位大侠,谢谢。
2#
发表于 2011-2-14 09:58:33 | 只看该作者
你修改一下bat就可以了嘛
回复

使用道具 举报

3#
 楼主| 发表于 2011-2-14 12:27:56 | 只看该作者
不会修改bat 附上bat
ECHO Off&Title 绿化
taskkill /f /im Thunder.exe>NUL 2>NUL
taskkill /f /im Thunder5.exe>NUL 2>NUL
taskkill /f /im ThunderPlatform.exe>NUL 2>NUL
regsvr32 /s BHO\XunLeiBHO.dll
regsvr32 /s BHO\LinkSimulate.dll
regsvr32 /s BHO\ThunderAgent.dll
BHO\XLNonIESvr.exe -r ie -silent -setfirst
BHO\XLNonIESvr.exe -r 360 -silent -setfirst
BHO\XLNonIESvr.exe -r opera -silent -setfirst
BHO\XLNonIESvr.exe -r chrome -silent -setfirst
BHO\XLNonIESvr.exe -r maxthon -silent -setfirst
BHO\XLNonIESvr.exe -r firefox -silent -setfirst
del/f/s/q "%temp%\*.*" >NUL 2>NUL
rd/s/q "%temp%\Thunder Network" 2>NUL
rd/s/q "%PUBLIC%\Thunder Network" 2>NUL
rd/s/q "%AppData%\Thunder Network"2>NUL
rd/s/q "%PUBLIC%\Documents\Thunder Network" 2>NUL
rd/s/q "%CommonProgramFiles%\Thunder Network" 2>NUL
rd/s/q "%UserProfile%\AppData\LocalLow\XueLei" 2>NUL
rd/s/q "%CommonProgramFiles(x86)%\Thunder Network" 2>NUL
rd/s/q "%AllUsersProfile%\Application Data\Xunlei" 2>NUL
rd/s/q "%UserProfile%\AppData\LocalLow\Thunder Network" 2>NUL
rd/s/q "%SystemDrive%\ProgramData\Thunder Network\">NUL 2>NUL
rd/s/q "%AllUsersProfile%\Application Data\Thunder Network" 2>NUL
rd/s/q "%UserProfile%\Local Settings\Application Data\Thunder Network" 2>NUL
md "%windir%\system32\cid_store.dat" >NUL 2>NUL
md "%windir%\system32\pub_store.dat" >NUL 2>NUL
attrib +r "%windir%\system32\cid_store.dat" >NUL 2>NUL
attrib +r "%windir%\system32\pub_store.dat" >NUL 2>NUL
md "%SystemDrive%\ProgramData\Thunder Network\DownloadLib\cid_store.dat" >NUL 2>NUL
md "%SystemDrive%\ProgramData\Thunder Network\DownloadLib\pub_store.dat" >NUL 2>NUL
attrib +r "%SystemDrive%\ProgramData\Thunder Network\DownloadLib\cid_store.dat" >NUL 2>NUL
attrib +r "%SystemDrive%\ProgramData\Thunder Network\DownloadLib\pub_store.dat" >NUL 2>NUL
xcopy /e /y /i Addins "%SystemDrive%\ProgramData\Thunder Network\Thunder\Addins" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" /v dir /d "%CD%\Program" /f >NUL 2>NUL
reg add "HKLM\SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" /v Version /d "7.1.2.2014" /f >NUL 2>NUL
reg add "HKLM\SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" /v instdir /d "%CD%\Program" /f >NUL 2>NUL
reg add "HKLM\SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" /v addinsdir /d "%CD%\addins" /f >NUL 2>NUL
reg add "HKLM\SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" /v Path /d "%CD%\Program\Thunder.exe" /f >NUL 2>NUL
reg add "HKLM\Thunder Network\ThunderOem\thunder_backwnd" /v addinsdir /d "%SystemDrive%\ProgramData\Thunder Network\Thunder\Addins" /f >nul
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" /ve /d "%CD%\BHO\geturl.htm" /f >NUL 2>NUL
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" /v Contexts /t reg_dword /d "0x00000022" /f >NUL 2>NUL
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" /ve /d "%CD%\BHO\getAllurl.htm" /f >NUL 2>NUL
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" /v Contexts /t reg_dword /d "0x000000f3" /f >NUL 2>NUL
md "%temp%\Thunder Network\Thunder"&echo .>"%temp%\Thunder Network\Thunder\AD"&attrib +r "%temp%\Thunder Network\Thunder\AD" >NUL 2>NUL
另外试验了一下 我按照上面的pecmd来写似乎没有运行此bat
回复

使用道具 举报

4#
 楼主| 发表于 2011-2-14 13:56:48 | 只看该作者
我看了一下发现弹出的确定框是XLNonIESvr.exe这个程序,能不能在bat中添加一句让它隐藏啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-11-17 18:30

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表