@echo off taskkill /f /im javaw.exe start javaw -jar print.jar exit rem taskkill /f /im cmd.exe 上面方式启动,可以自动关闭黑窗,闪一下就完了。