开发者

batch requests answer but can't automate it?

I'm trying to copy a file and the cmd returns asking if C:\test\2006 is indicating a file name or开发者_StackOverflow社区 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)?


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜