Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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 '14 at 11:07

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
        2 file(s) moved.
share|improve this answer

You must log in to answer this question.

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