Windows cmd中的虚拟命令 [英] Dummy command in windows cmd

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

问题描述

在Linux中,我们有一个makefile:

In linux we have a makefile:

$(foreach A,a b,echo $(A) &&) true

它可以工作并回声

a
b

现在,我们要将其移植到Windows.我为Windows找到的最简短的命令什么都不做:

Now we want to port it to Windows. The shortest command I've found for Windows that does nothing:

if 0==1 0

因此makefile示例如下

So the makefile example will look like

$(foreach A,a b,echo $(A) &&) if 0==1 0

Windows框中是否有任何虚拟命令(实际上什么也没做)?还是任何不错的技巧?

Is there any dummy command in Windows in box (that really does nothing)? Or any nice hack?

推荐答案

rem命令不执行任何操作.

The rem command does nothing.

这篇关于Windows cmd中的虚拟命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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