我無法弄清楚如何批量使用「移動」命令。下面是我在做什麼:不正確的移動語法?
@ECHO off
SET name=t
SET steam=C:\Program Files (x86)\Steam\steamapps\common\
SET buffer=C:\Users\Tyler\Desktop\buffer\
SET desktop=C:\Users\Tyler\Desktop\
SET s=%steam%%name%
SET b=%buffer%%name%
SET d=%desktop%%name%
ECHO Moving %s% to %buffer%
MOVE %s% %buffer%
ECHO Moving %d% to %steam%
MOVE %d% %steam%
ECHO Moving %b% to %desktop%
MOVE %b% %desktop%
PAUSE
這裏是這樣說的:
Moving C:\Program Files (x86)\Steam\steamapps\common\t to C:\Users\Tyler\Desktop\buffer\
The syntax of the command is incorrect.
Moving C:\Users\Tyler\Desktop\t to C:\Program Files (x86)\Steam\steamapps\common\
The syntax of the command is incorrect.
Moving C:\Users\Tyler\Desktop\buffer\t to C:\Users\Tyler\Desktop\
The system cannot find the file specified.
Press any key to continue . . .
我試圖移動文件夾 「T」,也就是在C:\ Program Files文件(x86)的\ Steam \ steamapps \ common \ t添加到桌面上的「緩衝區」文件夾中。然後,我想將桌面上名爲「t」的文件夾移動到上面的蒸汽路徑,然後將緩衝區文件夾中的「t」移動到桌面上的「t」。
我將要做的就是使用它將遊戲目錄從修改版本切換到非修改版本。
您需要周圍的雙引號包含空格的目錄名稱。 –
@KenWhite哇...這很尷尬。這解決了它。 – Twijn