Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

In windows console (cmd/command) you can write rename a b or move a b. Whats the difference between the two?

share|improve this question
up vote 17 down vote accepted

There's two main differences:

  1. rename cannot move files to another directory or drive, move can.

  2. rename cannot overwrite existing files, move can (using the /y parameter).

For more information, see the documentation for rename and move.

share|improve this answer

Assuming the traditional cmd.exe shell:

rename cannot move files to a different directory.

move *.txt E:\Notes

But it can rename multiple files at once. For example:

rename very-long-name.c *.cpp

rename *.txt *.lol

rename proj1.* "Project 1.*"

(This works because the MS-DOS and Windows cmd.exe shells, unlike their Unix counterparts, do not expand wildcards automatically – this is left for the program itself.)

share|improve this answer

Your Answer


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.