Today i had some problems with a laptop, and i had to reinstall the windows on it, while i was in the recovery console, i used XCOPY batch command to copy files and folders from c:\users\*USERNAME*\*.* to a folder on another partition. The problem is the command created a file with the save folder name that contains all my information. Is there any way to get the information back?
migrated from stackoverflow.com Dec 15 '12 at 19:12
This question came from our site for professional and enthusiast programmers.
xcopy has a parameters to specify that the target is a directory. Using that might prevent problems like this in the future.
It will be hard, if not impossible to restore the files. They are just copied one after another without any indication of where one starts and another ends. Probably no filenames stored, no size information.. It may work if you got only a couple of files that each have a clear file header, but otherwise you're doomed.