要是关闭某个程序,得需要知道其pid的,但这个是变化的。可以自己做这个exe,运行完自动关闭。bat 循环没有大难度。
:0
start %0
goto 0
把上面代码复制到刚好的bat记事本.双击就得了
@echo
:0
start /wait /d "D:\永恒之塔\" LwApplyID.exe
@ping -n 1 192.168.1.1
echo.
taskkill /im IEXPLORE.EXE /f
goto 0
下面的也可以一起带着,清理系统垃圾的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 off
送你一个清理系统垃圾的,给分吧。
调用API 得到窗体ID。
然后关闭窗体。即可关闭程序。