批量请求应答但无法自动化?

发布于 2024-10-02 11:49:27 字数 268 浏览 0 评论 0原文

我正在尝试复制文件,cmd 返回询问 C:\test\2006 是否指示其位置的文件名或文件夹名称

(B= 文件,D= 文件夹)?

我知道我想要 D = 文件夹,但是对于那些能够阅读荷兰语的人来说,我似乎无法自动运行它,

这是它返回的代码:

Geeft C:\test\2006 een bestandsnaam of een mapnaam op het doel aan
(B = bestand, D = map)?

I'm trying to copy a file and the cmd returns asking if C:\test\2006 is indicating a file name or a folder name at its location

(B= file, D= folder)?

I know that I want D = folder however I can't seem to autorun this

for those able to read Dutch this is the code it returns:

Geeft C:\test\2006 een bestandsnaam of een mapnaam op het doel aan
(B = bestand, D = map)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

硪扪都還晓 2024-10-09 11:49:27

您可以在路径末尾添加 \ 来指示它是一个文件夹:

copy whatever C:\test\2006\

要回答这个问题,您需要将一个字符通过管道传输到标准:

echo d | copy whatever C:\test\2006

You can add a \ to the end of the path to indicate that it's a folder:

copy whatever C:\test\2006\

To answer the question, you need to pipe a character to standard in:

echo d | copy whatever C:\test\2006
桃扇骨 2024-10-09 11:49:27

您使用 XCOPY 吗?如果是这样,请使用 /I 选项。

Are you using XCOPY? If so, use the /I option.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文