如何在Windows中运行CMD在一行中两个命令? [英] How to run two commands in one line in Windows CMD?
本文介绍了如何在Windows中运行CMD在一行中两个命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Windows CMD控制台运行两个命令。
I want to run two commands in a Windows CMD console.
在Linux中我会做这样的:触摸thisfile; LS -lstrh
。
In Linux I would do it like this: touch thisfile ; ls -lstrh
.
它是如何在windows做?
How is it done in windows?
推荐答案
就像这样,至少在Win7的:
Like this, at least on Win7:
dir & echo foo
这篇关于如何在Windows中运行CMD在一行中两个命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文