小BAT解决大麻烦_某卡教室控制软件

1 @echo off
2 mode con cols=13 lines=1 
3 if "%1" == "h" goto begin 
4 mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit 
5 :begin
6 tasklist |findstr /i student>nul&&taskkill /f /im student.exe>nul
7 goto begin>nul

代码阐述:

mode con cols=13 lines=1 //设置命令行窗口的大小

3-4行为隐藏窗口的代码

5 行 //发现进程并结束 使用>nul 期间不显示输出

7行 //goto循环

原文地址:https://www.cnblogs.com/feiyucha/p/9809922.html