0

我想写*.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
4

1 回答 1

0

Quote your arguments

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

Note that the quotes come before the variable name.

于 2014-10-24T04:03:41.463 回答