1

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.

2
  • What destination folder is the string "..\..\..\test2**" supposed to represent?
    – kreemoweet
    Dec 24, 2011 at 22:35
  • since i am currently at the testb sub-folder, i want to go back to c:\test2 and put the files in that folder
    – WikiWitz
    Dec 25, 2011 at 0:16

2 Answers 2

4

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

2
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.

3
  • thanks gentlesea. but as what i have stated what i am trying to figure/find out is why my syntax was wrong. isn't it compliant to the "[path]filename1[,...]" syntax, where i can specify multiple files separated by a comma?
    – WikiWitz
    Dec 24, 2011 at 16:59
  • sorry and glad to hear it doesn't work there, too :). here is a link to an example: easydos.com/move.html
    – WikiWitz
    Dec 24, 2011 at 17:08
  • You don't have DOS. A DOS command reference will tell you erroneous things.
    – JdeBP
    Dec 24, 2011 at 20:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .