Batch

robocopy 找不到路徑

  • May 19, 2016

我有如下批處理腳本:

SET SOURCE=F:\Diff\For_VOYAGE\models.pck.files\models\players
SET DESTINATION=F:\Diff\For_VOYAGE\models.pck.files\NEW\models\players
SET LOG=LOG.txt
robocopy %SOURCE%\装备\女\印度舞娘时装上衣 %DESTINATION%\装备\女\印度舞娘时装上衣 /E /LOG+:%LOG%

當我執行它時,給我如下錯誤:


-------------------------------------------------------------------------------
  ROBOCOPY     ::     Robust File Copy for Windows     ::     Version XP010
-------------------------------------------------------------------------------

 Started : Sat May 14 20:27:50 2016

  Source : F:\Diff\For_VOYAGE\models.pck.files\models\players\装备\女\印度舞娘时装上衣\
    Dest : F:\Diff\For_VOYAGE\models.pck.files\NEW\models\players\装备\女\印度舞娘时装上衣\

   Files : *.*

 Options : *.* /S /E /COPY:DAT /R:1000000 /W:30 

------------------------------------------------------------------------------

2016/05/14 20:27:50 ERROR 3 (0x00000003) Accessing Source Directory F:\Diff\For_VOYAGE\models.pck.files\models\players\装备\女\印度舞娘时装上衣\
The system cannot find the path specified.

我有檢查路徑

F:\Diff\For_VOYAGE\models.pck.files\models\players\装备\女\印度舞娘时装上衣\

我可以從 Windows 資源管理器訪問它。但似乎命令提示符無法讀取它。以前有人遇到過這個問題嗎?謝謝你。

感謝您的回复。問題已經解決了。這是因為我忘記將批處理腳本編碼類型更改為 GBK

引用自:https://serverfault.com/questions/776768