Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Wrongly I moved some files from one folder to another folder but the destination folder doesn't exists.
Now my file has gone how to get back.

I used following batch command

MOVE c:\export\Sap\No_Metadata\something.pdfc:\Export\Metadata

What I have tried:

What I did

My file was in (source folder)
c:\export\Sap\No_Metadata\something.pdf

I had to move(destination folder)
c:\Export\Metadata (but Metadata folder doesn't exist)
now i have some newly created file metadata but my files are not there

I used following batch command

MOVE c:\export\Sap\No_Metadata\something.pdfc:\Export\Metadata

How to get back the files

Pls help me.

Thanks in advance
Posted
Updated 19-Jan-17 21:54pm
v2

1 solution

If the exact command you issued was
MOVE C:\EXPORT\SAP\NO_\sdjhgsajd.pdf C:\EXPORT\to
Then look in your EXPORT folder and you will find the file under the name "to" with no file extension. rename that to "sdjhgsajd.pdf" and it will be fine.
 
Share this answer
 
Comments
Mukesh Pr@sad 20-Jan-17 4:00am    
I have moved some 1000 files but under the name "to" I have only one file with no extension. Please tell me how to get back remaining files
OriginalGriff 20-Jan-17 4:14am    
How?
If you moved them with
move blah.* \otherfolder\to
Then you would get a message "Cannot move multiple files to a single file." and nothing would happen.
if you tried
move blah1.pdf \otherfolder\to
move blah2.pdf \otehrfolder\to
you would get a message "Overwrite D:\aaa\to? (Yes/No/All):" and it would require confirmation.

But ... if you have done it, then your only option is to restore from a recent backup: overwriting a file is not a delete operation so the recycle bin is not invoked, and you cannot recover the contents directly.
You may, if you are very, very lucky be able to recover the file content from the disk sectors as they are not normally overwritten but reassigned back to the "free" list - but that's a complicated job and not something I could assist you with via a small text box like this!
Jochen Arndt 20-Jan-17 4:22am    
When the destination file exists already, the move command will ask you if the file should be overwritten. If you have confirmed that - or used the /Y command line option to suppress the verification - your files are lost.

You can try to use an undelete tool to recover your files. Just search for "windows undelete tool".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900