• 批量拷贝局域网内的文件


     

    下面是批处理文件内的脚本:其中Lf-7-01是机器的网络标识,d$是局域网内的计算机的D盘,  d:\ks 是教师机的目的文件夹,执行的操作是把所有局域网的学生机内的D\KS 文件夹中的数据拷贝到教师机的d:\ks中。

    @echo off                                                            
    xcopy \\Lf-7-01\d$\ks  d:\ks

    xcopy \\Lf-7-02\d$\ks  d:\ks
    xcopy \\Lf-7-03\d$\ks  d:\ks
    xcopy \\Lf-7-04\d$\ks  d:\ks
    xcopy \\Lf-7-05\d$\ks  d:\ks
    xcopy \\Lf-7-07\d$\ks  d:\ks
    xcopy \\Lf-7-07\d$\ks  d:\ks
    xcopy \\Lf-7-08\d$\ks  d:\ks
    xcopy \\Lf-7-09\d$\ks  d:\ks
    xcopy \\Lf-7-10\d$\ks  d:\ks
    xcopy \\Lf-7-11\d$\ks  d:\ks
    xcopy \\Lf-7-12\d$\ks  d:\ks
    xcopy \\Lf-7-13\d$\ks  d:\ks
    xcopy \\Lf-7-14\d$\ks  d:\ks
    xcopy \\Lf-7-15\d$\ks  d:\ks
    xcopy \\Lf-7-16\d$\ks  d:\ks
    xcopy \\Lf-7-17\d$\ks  d:\ks
    xcopy \\Lf-7-18\d$\ks  d:\ks
    xcopy \\Lf-7-19\d$\ks  d:\ks
    xcopy \\Lf-7-20\d$\ks  d:\ks
    xcopy \\Lf-7-21\d$\ks  d:\ks
    xcopy \\Lf-7-22\d$\ks  d:\ks
    xcopy \\Lf-7-23\d$\ks  d:\ks
    xcopy \\Lf-7-24\d$\ks  d:\ks
    xcopy \\Lf-7-25\d$\ks  d:\ks
    xcopy \\Lf-7-26\d$\ks  d:\ks
    xcopy \\Lf-7-27\d$\ks  d:\ks
    xcopy \\Lf-7-28\d$\ks  d:\ks
    xcopy \\Lf-7-29\d$\ks  d:\ks
    xcopy \\Lf-7-30\d$\ks  d:\ks
    xcopy \\Lf-7-31\d$\ks  d:\ks
    xcopy \\Lf-7-32\d$\ks  d:\ks
    xcopy \\Lf-7-33\d$\ks  d:\ks
    xcopy \\Lf-7-34\d$\ks  d:\ks
    xcopy \\Lf-7-35\d$\ks  d:\ks
    xcopy \\Lf-7-36\d$\ks  d:\ks
    xcopy \\Lf-7-37\d$\ks  d:\ks
    xcopy \\Lf-7-38\d$\ks  d:\ks
    xcopy \\Lf-7-39\d$\ks  d:\ks
    xcopy \\Lf-7-40\d$\ks  d:\ks
    xcopy \\Lf-7-41\d$\ks  d:\ks
    xcopy \\Lf-7-42\d$\ks  d:\ks
    xcopy \\Lf-7-43\d$\ks  d:\ks
    xcopy \\Lf-7-44\d$\ks  d:\ks
    xcopy \\Lf-7-45\d$\ks  d:\ks
    xcopy \\Lf-7-46\d$\ks  d:\ks
    xcopy \\Lf-7-47\d$\ks  d:\ks
    xcopy \\Lf-7-48\d$\ks  d:\ks
    xcopy \\Lf-7-49\d$\ks  d:\ks
    xcopy \\Lf-7-50\d$\ks  d:\ks
    xcopy \\Lf-7-51\d$\ks  d:\ks
    xcopy \\Lf-7-52\d$\ks  d:\ks
    xcopy \\Lf-7-53\d$\ks  d:\ks
    xcopy \\Lf-7-54\d$\ks  d:\ks
    xcopy \\Lf-7-55\d$\ks  d:\ks
    xcopy \\Lf-7-56\d$\ks  d:\ks
    xcopy \\Lf-7-57\d$\ks  d:\ks
    xcopy \\Lf-7-58\d$\ks  d:\ks
    xcopy \\Lf-7-59\d$\ks  d:\ks
    xcopy \\Lf-7-60\d$\ks  d:\ks
    xcopy \\Lf-7-61\d$\ks  d:\ks
    xcopy \\Lf-7-62\d$\ks  d:\ks
    xcopy \\Lf-7-63\d$\ks  d:\ks

     @echo 成功拷贝!
    pause

  • 相关阅读:
    Ubuntu包管理命令 dpkg、apt和aptitude
    Linux curses库使用
    VC皮肤库SkinSharp 1.0.6.6的使用
    HOG(方向梯度直方图)
    2014年国外发布的中国内地大学排名18强名单
    sql语句中BEGIN TRAN...COMMIT TRAN
    搜索框中“请输入搜索keyword”
    IOS基于新浪微博开放平台微博APP
    php字符串标点等字符截取不乱吗 封装方法
    谈一谈struts2和springmvc的拦截器
  • 原文地址:https://www.cnblogs.com/hellofengying/p/1305375.html
Copyright © 2020-2023  润新知