如何运行多个DOS并行命令? [英] How to run multiple DOS commands in parallel?

查看:403
本文介绍了如何运行多个DOS并行命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何运行多个DOS命令?

How to run multiple dos commands?

我有一个循环,运行服务器的检测,检测哪个服务器作品和快速。而且,因为有更多的服务器,我想不按顺序运行所有的服务器的检测,但是在平行。

I have a for loop, which runs detection of server to detect which server works and is fast. And because there is more servers, I wish not to run all server detections in sequence, but in parallel.

推荐答案

您可以用并行执行命令启动是这样的:

start ping myserver
start nslookup myserver
start morecommands

他们将各自开始自己的命令提示符窗口,允许你在从一个批处理文件中同时运行多个命令。

They will each start in their own command prompt and allow you to run multiple commands at the same time from one batch file.

希望这有助于!

这篇关于如何运行多个DOS并行命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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