【问题标题】:Copy file in server 2008在服务器 2008 中复制文件
【发布时间】:2014-10-24 03:54:37
【问题描述】:

我想写*.bat 文件来复制但它不起作用:

-Source:  (Ex)  \\192.168.1.100\Data\ exception.sites (File is exception.sites)
-Destination:  %USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security (%USERPROFILE%\ is C:\user\acc logon domain)

set source=\\192.168.1.100\Data\exception.sites\ set destination=%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\
xcopy %source% %destination% /y

【问题讨论】:

    标签: batch-file server xcopy user-profile


    【解决方案1】:

    引用你的论点

    set "source=\\192.168.1.100\Data\exception.sites\"
    set "destination=%USERPROFILE%\AppData\LocalLow\Sun\Java\Deployment\security\"
    xcopy %source% %destination% /y
    

    注意引号在变量名之前。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-10
      • 2013-08-23
      • 1970-01-01
      • 2012-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多