Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
What destination folder is the string "..\..\..\test2**" supposed to represent? –  kreemoweet Dec 24 '11 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 '11 at 0:16
add comment

2 Answers

up vote 3 down vote accepted

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

share|improve this answer
add comment
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.

share|improve this answer
    
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 '11 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 '11 at 17:08
    
You don't have DOS. A DOS command reference will tell you erroneous things. –  JdeBP Dec 24 '11 at 20:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.