一个批处理文件不正确需要帮助!
问题描述:
您好,我在一个bat文件中有一个问题是复制目录,文件和子文件但是导演必须从字母ai开始尝试这样的事情:
@ ECHO OFF
CD ...
/ d %% X in(a *)do robocopy %% XC:\ Users \ 1
PAUSE
这个bat文件复制子目录和文件但不复制第一个文件夹。你能帮帮我吗?
最好的问候:
Joao Marques
删除了喊叫 - 由Jibesh [/ edit]
Hello, i have one problem in one bat file to copy the directories, files and subfiles but directoris must start for letter a i try something like this:
@ECHO OFF
CD ...
for /d %%X in (a*) do robocopy %%X "C:\Users\1"
PAUSE
This bat file copy sub directories and files but doesn''t copy the first folder. Can you help me?
The best regards:
Joao Marques
Removed shouting - by Jibesh[/edit]
答
请参阅我对该问题的评论。您是否将所有目录合并为一个?然后你就会遇到问题:不同合并分支中的一些子目录/文件可以有相同的名称;另一个可能的问题是许可。你需要检查一下。-SA
Please see my comment to the question. Are you merging all directories into one? Then you can have problems: some sub-directories/files in different merging branches can have identical names; another possible problem is permission. You need to check it up.—SA