使用xcopy命令,从服务器copy最新文件到本地,实现程序版本更新

1、首先要要把服务器上要被下载更新的文件夹设置共享;

2、在客户机执行如下命令(注意xcopy命令,服务器上文件夹地址是共享地址)

     a、net use \\127.0.0.1  "Aa123456" /user:administrator

     b、xcopy \\127.0.0.1\Users\Administrator\Desktop\test1\*.* C:\Users\Administrator\Desktop\test2 /e/s/d/y

posted @ 2017-06-25 15:57  新进社员  阅读(1495)  评论(0)    收藏  举报