gpt4 book ai didi

batch-file - 路径中有空格的 FORFILES

转载 作者:行者123 更新时间:2023-12-03 15:46:52 27 4
gpt4 key购买 nike

我正在尝试在 dos 中运行此命令

FORFILES with params /P C:\Builds\ /M *.chm /S /C "cmd /c copy @file C:\My Brand\"

它会爆炸,因为目标文件夹路径中有一个空格。如何传递由“”分隔的源路径和目标路径?我尝试添加一个额外的双引号,但我得到“无法识别命令”

最佳答案

0x22是双引号的表示(十六进制编码)。

FORFILES /P C:\Builds\ /M *.chm /S /C "cmd /c copy @file 0x22C:\My Brand\0x22"

关于batch-file - 路径中有空格的 FORFILES,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22764287/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com