How to regain deleted files??

I'd like to know how I recreate deleted files. The files are not yet deleted from the disk. So in theory I should be alble too recreate them. I dont mind writing a program to do so. I just need to know how to do so.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sorry to ask the obvious, but have you tried recovering them from the recycle bin?

Adam LeinssServer SpecialistCommented:
Please be more specific.  If the "files are not yet deleted from the disk", how can you recreate a file that has not be deleted to save it from deletion??
If you mean that you hit Shift+delete or del from dos, use undelete filename. This should be done as soon as possible after the deletion so as to minimize the possibility of the file being overwritten.
Deletion in dos (and win 9x) is merely changing a character in the FAT to show that the file is deleted.
Of course, bschews answer may be even more appropriate if you deleted the file using explorer.
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

open the recycle bin.
highlight the file.
click on RESTORE FILE.

If you want to write a program, the only thing that DOS does to indicate a deleted file is to erase the first letter of the file name in the FAT.  If none of the sectors have been overwritten, simply supply the first letter for the file and you are recovered.  There are Several programs already out there that will do just that for you.  My favorite is on the Norton disk. This will work on files deleted from DOS or Windows, even if it has been purged from the recycle bin.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Micke_CapAuthor Commented:
Perhaps I should add that the files are deleted from the Recyclebin.
Get out the Norton Recovery Disk and let it have at it. Most Disk toolkits have a simmilar program. Also is you have access to MS-Dos 6.x, this also has a basic undelete program, again, you will have to specify the first letter of the filename.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.