cmd move - move a couple of files
Ok so I have created test folders and files to work with the cmd commands:
C:.
|-------test
| \---testa
| \---testb
| test1.txt
| test2.txt
|
|-------test2
My problem is that i can't get the following command to work:
C:\test\testa\testb>move test1.txt,test2.txt ..\..\..\test2
It would output The syntax of the command is incorrect
. In move /?
, the syntax is:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
I believe my syntax is correct(?). Google couldn't help me out. I know some "alternatives" to this command. What I want to know is what i did wrong that my syntax is not correct.
The syntax of the move
command in Microsoft's cmd
as given by its /?
option is wrong. The correct syntax can be found in the Windows NT command references on Microsoft's WWW site, and in the Windows Command reference that may have been installed on your machine with the operating system. Microsoft's move
command only supports one source argument. For a move
command that supports multiple source arguments, you need to use a better command interpreter.
Further reading
- JP Software (2011).
move
. TCC Help and Support. - Microsoft Corporation (2001). Command-line reference A–Z. Windows XP Product Documentation.
C:\test\testa\testb>move test?.txt ..\..\test2
C:\test\testa\testb\test1.txt
C:\test\testa\testb\test2.txt
2 Datei(en) verschoben.
You might want to use wildcards to specify the files you want to move. Comma-seperation does not work here neither.