一个批处理文件不正确需要帮助! [英] one batch file not correctly need for help!!!
本文介绍了一个批处理文件不正确需要帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我在一个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
这篇关于一个批处理文件不正确需要帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文