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?
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.
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.
The rem
command does nothing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With