Helping people with computers... one answer at a time.

Accidentally dropping a file where you didn't intend to is easy in Windows Explorer. I'll look at how to recover it and why the error is so darned quick.

On three or four occasions, I have jerked my hand when I am trying to open or move a file and the file disappears. I don't understand how I moved that file 20x faster than if I had tried to copy it.

Well, moving and copying may seem similar in some ways, but as you can see from the results, they are really two completely different things.

Except when they're not. (I know, I know - but everything has its exceptions).

I'll explain the differences.

And I'll show you the quick and easy way to recover from accidental moves.

The accidental move

We've probably all done it at one point or another: in Windows Explorer, click a file, hold the mouse button down, and drag the file's icon to a new location where we release the mouse button to move the file there.

“Windows Explorer has an 'Undo', and in many cases it'll undo that accidental move just as quickly as it happened.”

Except that somewhere along the way, we accidentally release the mouse button and all of a sudden - *poof* - the file is moved ... somewhere. Wherever the mouse pointer happened to be when we unintentionally released it.

Type CTRL+Z.

Or type the ALT key, click the Edit menu and click Undo, if it's not grayed out.

Windows Explorer has an "Undo", and in many cases, it'll undo that accidental move just as quickly as it happened.

Moving a file (single drive)

A move, as its name implies, moves a file from one location to another.

If you drag and drop a file to another location on the same disk drive the default action is to move the file.

When moving to a new location on the same drive, the file's data doesn't actually have to be moved. In this case, a move operation is simply a change to the drive's directory or file listing.

  • The directory of the target folder is updated to include the file being moved in.

  • The directory of the folder where the file used to reside is updated to no longer list the file.

That's it. And because the actual contents of the file are never touched, it's pretty quick.

Now, that only applies to a file being moved to a new location on the same drive. When we're moving across drives, things get slightly more complicated.

But first, we need to understand how Copy works.

Copying a file

If you drag and CTRL+drop (hold the CTRL key while dropping) a file to another location, the action is to copy the file. A true copy copies the contents of the file.

  • The file contents are copied, in full, to some location on the target disk drive. Depending on the size of the file, this can take some time.

  • The directory of the target folder is updated to include the new file copied.

That's it. You start with one file and you end up with two identical copies.

Moving a file across drives

If you drag and drop a file on one drive to another, the default action is to copy the file, as I've just described. If you hold down the SHIFT key when dropping, however, the file will be moved. When moving a file from one drive to another - say from C: to D: - elements of both move and copy are involved.

  • The file contents are copied in full to some location on the target disk drive.

  • The directory of the target folder on the target drive is updated to include the new file copied.

  • The directory of the source folder where the file used to reside is updated to no longer list the file. This causes the actual data for that file on the source drive to be released and marked as unused space.

While both are technically "move" operations, a move from one location to another on the same drive will typically be nearly instantaneous, whereas a move from one drive to another will take noticeable time because it actually has to copy the file contents from one drive to another.

Article C4949 - October 8, 2011

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
15 Comments

If you do accidentally move files (such as slipping finger) you can undo that move .
I have XP and on top of folder it says file , edit , etc... Click on edit and undo move. You can sometimes go back several steps if needed.

Posted by: K. Poole at November 29, 2011 5:45 AM

AAAhhh...CTRL+Z...that most blessed of keystrokes. Whoever invented it deserves the Nobel Peace Prize much more than any recipient in my lifetime!!!

Oh, and for Obiwan...Partition or no partition - I'm pretty sure the defaults in Leo's article are the same for ANY drive letter.

Posted by: Sam77 at December 17, 2011 10:26 PM

Edit-Undo is greyed out, CntlZ doesn't work, how to get it back please?
I have sent about 10 hours on the web on this.

That typically means that there is nothing to be un-done, or that the action you just took is not an undo-able action.
Leo
13-Jan-2012
Posted by: Don at January 13, 2012 7:35 AM

Thanks for the reply Leo :) :) :)
It is ALWAYS like this, never ever gives the option after moving something within the directory of folders.
Is broken.....how to fix.

Posted by: Don at January 13, 2012 3:31 PM

Thank you, thank you. I did this (and have done it many times before) with a folder, however it was in the *Open* dialog box of a program, so *Undo* was not available. The folder had many projects on it with many subfolders, so Copying it back was taking 2 hours, and ultimately had an error and didn't even work. Dragging it back took 3 seconds!

Posted by: Bob at March 13, 2012 7:48 PM
Post a comment on "Why is it so easy and quick to accidentally move a file when copying takes so much longer?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...