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.

I'm using this command:

move C:\folder\*.txt C:\folder\archive\*.txt

I'm trying to move multiple files to an archive folder using the *.txt but I get an error that states it cannot find the file specified.

Any suggestions?

share|improve this question
add comment

2 Answers

syntax is move C:\folder\*.txt C:\folder\archive

share|improve this answer
    
all this while I was using / instead of \ –  Maze Oslo May 8 at 11:07
add comment

The move command does not allow wildcards in the destination, which must be an existing directory if you're moving more than one file. (The syntax for move is different than for rename, which may be confusing you. ) Here's an example:

> dir /w
 Volume in drive C is Windows7
 Volume Serial Number is E441-3A51

 Directory of C:\Users\Nicole\Desktop\MoveExample

[.]      [..]     file1    file2    [folder]
               2 File(s)             27 bytes
               3 Dir(s)  507,369,046,016 bytes free

> move file* fold*
The filename, directory name, or volume label syntax is incorrect.

> move file* newfolder
Cannot move multiple files to a single file.

> move file* folder
C:\Users\Nicole\Desktop\MoveExample\file1
C:\Users\Nicole\Desktop\MoveExample\file2
        2 file(s) moved.
share|improve this answer
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.