我无法弄清楚如何批量使用“移动”命令。下面是我在做什么:不正确的移动语法?
@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