此处是关闭再运行打印机相关服务
代码语言:javascript复制%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
放入
C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup
之后就可以开机自启