BAT文件中打开VBS文件的代码
VBS文件代码为:DimstrPrgpthstrPrgpth="D:\ProgramFiles\Tencent\QQ\CoralQQ.exe"Setwshshell=Cr...
VBS文件代码为:
Dim strPrgpth
strPrgpth = "D:\Program Files\Tencent\QQ\CoralQQ.exe"
Set wshshell = CreateObject("wscript.shell")
Set oexec = wshshell.exec(strPrgpth)
wscript.sleep 8000
wshshell.AppActivate "QQ用户登录"
wshshell.Sendkeys "{TAB}"
wscript.Sleep 500
wshshell.Sendkeys "123456789"
wscript.Sleep 500
wshshell.Sendkeys "{TAB}"
wscript.Sleep 500
wshshell.Sendkeys "123456"
wscript.Sleep 500
wshshell.Sendkeys "{ENTER}"
wscript.Sleep 500
WScript.quit
BAT文件代码:
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo.
现要求在BAT文件运行结束时运行VBS文件
VBS文件地址 C:\Documents and Settings\Administrator\桌面\宠物QQ登录.vbs 展开
Dim strPrgpth
strPrgpth = "D:\Program Files\Tencent\QQ\CoralQQ.exe"
Set wshshell = CreateObject("wscript.shell")
Set oexec = wshshell.exec(strPrgpth)
wscript.sleep 8000
wshshell.AppActivate "QQ用户登录"
wshshell.Sendkeys "{TAB}"
wscript.Sleep 500
wshshell.Sendkeys "123456789"
wscript.Sleep 500
wshshell.Sendkeys "{TAB}"
wscript.Sleep 500
wshshell.Sendkeys "123456"
wscript.Sleep 500
wshshell.Sendkeys "{ENTER}"
wscript.Sleep 500
WScript.quit
BAT文件代码:
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo.
现要求在BAT文件运行结束时运行VBS文件
VBS文件地址 C:\Documents and Settings\Administrator\桌面\宠物QQ登录.vbs 展开
3个回答
展开全部
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
Call "C:\Documents and Settings\Administrator\桌面\宠物QQ登录.vbs"
echo.
以上复制到你的.bat批处理文件里覆盖以前的就可以了
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
Call "C:\Documents and Settings\Administrator\桌面\宠物QQ登录.vbs"
echo.
以上复制到你的.bat批处理文件里覆盖以前的就可以了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
start "C:\Documents and Settings\Administrator\桌面\宠物QQ登录.vbs" <------Call->start
echo.
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
start "C:\Documents and Settings\Administrator\桌面\宠物QQ登录.vbs" <------Call->start
echo.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
"C:\Documents and Settings\Administrator\桌面\宠物QQ登录.vbs"
把这一句回到最后就行了注意引号不能省
把这一句回到最后就行了注意引号不能省
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询