运行jar文件后关闭批处理文件 [英] Close a batch file after running the jar file
本文介绍了运行jar文件后关闭批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我编写了一个运行 jar 文件的批处理文件.但是在运行 jar 文件后,批处理文件不会关闭,直到 jar 文件也关闭.如何在打开 jar 文件时关闭命令屏幕?(当 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.)
我的批处理文件:
@echo off
javajre7injavaw.exe -jar ".sample.jar"
exit
推荐答案
使用 start
命令 在命令的其余部分之前.
Use the start
command before the rest of the command.
这篇关于运行jar文件后关闭批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文