等待执行下一条命令 [英] Wait to execute next command

查看:56
本文介绍了等待执行下一条命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.因此,我的目标是在程序启动时执行一些命令.第一个启动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.


这篇关于等待执行下一条命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆