运行jar文件后关闭一个批处理文件 [英] Close a batch file after running the jar file
本文介绍了运行jar文件后关闭一个批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了运行jar文件的批处理文件。但它运行的JAR文件的批处理文件后不关闭,直到jar文件也被关闭。我怎样才能关闭命令屏幕时,它会打开jar文件?(当jar文件是打开我要关闭命令窗口。)
我的批处理文件:
关闭@echo
的java \\ jre7 \\ BIN \\ javaw.exe的罐子。\\ sample.jar
出口
解决方案
使用 启动
命令的其余部分之前命令。
I wrote a batch file that runs a jar file. But after it runs the jar file the batch file doesn't close until the jar file is also closed. How can I close the command screen when it opens the jar file?( when the jar file is open I want to close the command screen.)
My batch file :
@echo off
java\jre7\bin\javaw.exe -jar ".\sample.jar"
exit
解决方案
Use the start
command before the rest of the command.
这篇关于运行jar文件后关闭一个批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文