简体   繁体   English

(CMD)我想在退出后做点事

[英](CMD) i want to do something after exit

So I made something with java and when I run it it just works. 所以我用Java制作了一些东西,当我运行它就可以了。 When I type ingame /restart, my batch files closes(that's how i want it to be), but i want that after my batch closes it opens up again. 当我输入ingame / restart时,我的批处理文件关闭(这就是我想要的样子),但是我希望在我的批处理关闭后再次打开它。 so it would be something like this: 所以会是这样的:

@echo off
title WeLive4Pk
color 5d
java -Xmx1300m -cp data/CompiledFiles;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server
exit
start 2.run.bat

But after the exit you can't do anything so I want to ask you. 但是退出后您什么也不能做,所以我想问您。 How can I make it that it will work. 我如何使其能够正常工作。

Just remove exit . 只需删除exit It is sounds that you do not need it if you want your batch file to continue working. 如果您希望您的批处理文件继续工作,听起来不需要它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JavaFx:如果要在initialize()之后做点什么,在场景显示之前怎么办? - JavaFx:What if I want to do something after initialize(),before the scene show,how can I achieve this? 我想在cmd中编译一个.java文件后重命名该类名 - I want to rename the classname after compiling a .java file in cmd 我想做一些我不知道该怎么称呼的东西 - I want to make something that i do not know what to call 在cmd中执行后退出bat文件 - exit bat file after an execution in cmd 我希望我的应用在关闭之前做一些事情 - I want my app to do something before it closes 在 CMD 中,我使用 java 中的哪些代码退出程序或结束程序? - What code in java do I use to exit program or end program in CMD? 如果要在新线程中执行某些操作,为什么必须将最终对象发送到参数列表? - Why do I have to send the final object to the arguments list if I want to do something in a new thread? 如何在自动装箱后知道某些东西是原始类型? - How do i know if something is primitive type after autoboxing? 方法返回后做些什么 - Do something after method returns 检查客户端计算机上是否有cookie,否则请执行某些操作并退出 - Check if there is a cookie on the client machine, otherwise you do something and exit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM