Dummy command in windows cmd

artyom.stv picture artyom.stv · Aug 25, 2011 · Viewed 18.2k times · Source

In linux we have a makefile:

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

It works and echos

a
b

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

if 0==1 0

So the makefile example will look like

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

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

Answer

Raymond Chen picture Raymond Chen · Aug 25, 2011

The rem command does nothing.