使用批处理文件创建文件夹并将文件复制到多台PC [英] Using a batch file to create folder and copy files into it to multiple PCs

查看:86
本文介绍了使用批处理文件创建文件夹并将文件复制到多台PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件夹,其中包含许多文件,需要将它们复制到网络上的多台PC上.我认为如果该文件夹不存在,它将自动创建它.这就是我所拥有的...

I have a folder with numerous files that I need to copy to multiple PCs on a network. I thought if the folder didn't exist it would automatically create it. Here's what I have...

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

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

当我查看目标PC时,它不是在创建文件夹并在复制文件.我是整个批处理文件的新手,希望对您有所帮助.

When I look at the destination PC, it is not creating the folder and copying the files. I'm new to this whole batch files and would appreciate any help.

谢谢

格雷格

推荐答案

尝试

xcopy "C:\Documents and Settings\follag\Desktop\Music" "\PC NAME\c$\Documents and Settings\All Users\Desktop\Music" /E /I

这篇关于使用批处理文件创建文件夹并将文件复制到多台PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆