简体   繁体   中英

Windows batch file: how to enable inline echo of a command

If echo is disabled by default within a Windows batch file, is there a way to enable it "inline" for a specific command? I know that echoing of a specific command can be disabled by prepending "@" to the command, but is there a way to do the opposite of this?

For example, suppose a batch file like this:

@echo off
cmd1
cmd2
cmd3
:EOF

How could I force echo'ing of, say, cmd2 above?

您不能简单地通过@echo on开启您的批处理cmd2并以@echo off结束结尾吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM