等待执行下一条命令

编程入门 行业动态 更新时间:2024-10-15 10:17:00
本文介绍了等待执行下一条命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好.因此,我的目标是在程序启动时执行一些命令.第一个启动Java服务器.但是随后的人们需要等到它完全开始才可以继续.什么是最好的检查方法 服务器状态并知道它是打开还是关闭? 另外,还有什么办法可以使状态为轻"或类似的状态?绿色表示开启,红色表示关闭,可能是黄色表示正在重新加载?如果不是灯",符号或类似性质的东西,那么它可能不如文本框那么简单? 如果可能的话,有时间显示服务器已开启多长时间也是很好的.如何设置计时器以启动和停止服务器? 请原谅,VB.NET对我来说仍然是一种非常新的语言,与我认识的其他语言都不一样.

解决方案

也许您可以考虑使用 进程的WaitForExi t.

Hello. So my goal here is to have a few commands that would execute when the program starts. The first one starts a java server. But the ones that follow need to wait until it has completely started before they may go on. What would the best way to check the server status and tell if it's on or off? Also, along with that, is there any way to have a status 'light' or something similar? Green for ON, Red for OFF, and possibly Yellow for RELOADING? If not a 'light', symbol, or anything in that nature, than maybe something as simple as a text box? It would also be nice, if possible, to have a time to show how long the server has been on. How would I go about setting up the timer to start and stop with the server? Please excuse me, VB.NET is still a very new language to me, and is not like any of the others I know.

解决方案

Maybe you can consider using Process's WaitForExit.

更多推荐

等待执行下一条命令

本文发布于:2023-11-12 19:52:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582380.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   下一条

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!