f:\i>move foo bar dir
The syntax of the command is incorrect
help move says:
帮助动作说:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
This seems to imply multiple arguments. So how can I give multiple arguments to move?
这似乎意味着多重论点。那么我怎样才能提出多个参数来移动?
3 个解决方案
#1
From the command line:
从命令行:
for %i in (foo bar) do @move %i dir
Or, in a cmd file (since the use of %
variables is slightly different there):
或者,在cmd文件中(因为%变量的使用略有不同):
for %%i in (foo bar) do @move %%i dir
#2
if you have the privilege to download stuffs, you can use GNU coreutils,
如果你有权下载东西,你可以使用GNU coreutils,
c:test> mv foo bar destination
#3
To pass multiple files to the move command as the first argument, separate them with commas:
要将多个文件作为第一个参数传递给move命令,请用逗号分隔它们:
move foo,bar dir
That's why there's a comma in the help:
这就是帮助中有逗号的原因:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
#1
From the command line:
从命令行:
for %i in (foo bar) do @move %i dir
Or, in a cmd file (since the use of %
variables is slightly different there):
或者,在cmd文件中(因为%变量的使用略有不同):
for %%i in (foo bar) do @move %%i dir
#2
if you have the privilege to download stuffs, you can use GNU coreutils,
如果你有权下载东西,你可以使用GNU coreutils,
c:test> mv foo bar destination
#3
To pass multiple files to the move command as the first argument, separate them with commas:
要将多个文件作为第一个参数传递给move命令,请用逗号分隔它们:
move foo,bar dir
That's why there's a comma in the help:
这就是帮助中有逗号的原因:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination