Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dummy command in windows cmd

Tags:

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?

like image 712
artyom.stv Avatar asked Aug 25 '11 12:08

artyom.stv


People also ask

How do I duplicate in cmd?

Click Start, type cmd, and press Enter to open a command prompt window. In the Windows taskbar, right-click the command prompt window icon and select Command Prompt. A second command prompt window is opened.

What is %% in command?

Represents a replaceable parameter. Use a single percent sign ( % ) to carry out the for command at the command prompt. Use double percent signs ( %% ) to carry out the for command within a batch file.


1 Answers

The rem command does nothing.

like image 133
Raymond Chen Avatar answered Nov 11 '22 13:11

Raymond Chen