start cmd
shutdown -a
taskkill /f /im wscript.exe
taskkill /f /im cmd.exe
先来讲下这段代码,第一行是打开cmd,第二行取消关机,对应的关机:shutdown -s -t 时间(秒),第三行关闭脚本,第四行关闭cmd。
估计大家也猜到了,关闭某个程序的代码是taskkill /f /im 程序名
start cmd
shutdown -a
taskkill /f /im wscript.exe
taskkill /f /im cmd.exe
先来讲下这段代码,第一行是打开cmd,第二行取消关机,对应的关机:shutdown -s -t 时间(秒),第三行关闭脚本,第四行关闭cmd。
估计大家也猜到了,关闭某个程序的代码是taskkill /f /im 程序名