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.
我如何在 Windows 命令行中传递一个恰好位于文件夹名称中的空格?当我从文件夹名称中删除空格时,我可以执行目录复制。我已经用谷歌搜索了转义空间等,但我还没有找到它。
感谢您对此的帮助!
使用引用将解决这个问题。这是一个例子。
C:\Users\Administrator>copy "C:\users\Administrator\desktop\new folder" "C:\users\Administrator" The command completed successfully. C:\Users\Administrator>
我希望这有帮助。