i am learning ruby lately.
there is a rake.bat in the bin directory of ruby.
i find a line of code @"ruby.exe" "%~dpn0" %* in it.
why do they add @ before “ruby.exe”.
is this a special way to turn off the command-echoing feature in a bat file?
i am learning ruby lately. there is a rake.bat in the bin directory of
Share
Yep! Putting
@before a command suppresses echoing the command. If you want to do it globally, put@echo offat the top of the batch file.echo offdisables command echoing, and the@keeps theecho offcommand itself from being echoed.