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.
•
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.
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.
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.
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.
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
If you do accidentally move files (such as slipping finger) you can undo that move .
Posted by: K. Poole at November 29, 2011 5:45 AMI 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.
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 PMEdit-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.
13-Jan-2012
Thanks for the reply Leo :) :) :)
Posted by: Don at January 13, 2012 3:31 PMIt is ALWAYS like this, never ever gives the option after moving something within the directory of folders.
Is broken.....how to fix.
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