使用批处理文件创建文件夹并将文件复制到多台PC

Gre*_*reg 7 windows batch-file

我有一个包含大量文件的文件夹,我需要将其复制到网络上的多台PC上.我想如果文件夹不存在,它会自动创建它.这是我的...

复制"C:\ Documents and Settings\follag\Desktop\Music""\ PC NAME\c $\Documents and Settings\All Users\Desktop\Music"

当我查看目标PC时,它不会创建文件夹并复制文件.我是新批处理文件的新手,非常感谢任何帮助.

谢谢,

格雷格

Lit*_*les 13

尝试

xcopy "C:\Documents and Settings\follag\Desktop\Music" "\PC NAME\c$\Documents and Settings\All Users\Desktop\Music" /E /I
Run Code Online (Sandbox Code Playgroud)