历史是一堆灰烬,但灰烬深处有余温。——黑格尔

此处是关闭再运行打印机相关服务

1
2
3
4
5
6
%1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c ""%~s0"" ::","","runas",1)(window.close)&&exit

net stop Spooler
net start Spooler
net stop PrintNotify
net start PrintNotify

保存为bat即可执行

我们还可以将bat放入

1
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

之后就可以开机自启