Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将如何漂亮地打印cmd.exeshell 命令的输出,path以便每个元素都打印在新行上?我想我将不得不通过一些文本 munger 将它添加newline到它找到;字符的任何位置,但作为一个菜鸟,我不知道如何做到这一点。
cmd.exe
path
newline
;
另外,我认为我必须以%HOME%不同的方式处理宏。
%HOME%
我发现这是一个值得注意的选项:
echo %path:;=&echo.%