As long as Windows allows files to be deleted, we'll need to find ways to recover them. A time machine is probably not a viable solution to undo an accidental file deletion so we're left with finding some way to recover the file.
We all delete files we wish we wouldn't have and in most cases, the only way to get them back is to recover them using a file recovery program.
Many programs exist that recover files, several of which try to charge you for this "magic" service. Let me assure you, no wizard is necessary to recover a deleted file. You can recover a file, for free, all by yourself, with a freeware file recovery program.
I keep an updated list of programs that recover files in my List of the Best Free File Recovery Programs.
Any of these completely free programs will recover (or "undelete") any kind of file you might have deleted.
Note: You do not need to have any of these programs installed before you delete the file, which is great news. You can install one of these programs, perform the scan of your system, and recover any files that haven't been overwritten by other data.
Important: You can greatly increase the chance that a file recovery program can recover your file by minimizing your computer use as soon as you realize that you need to recover something. The more data your computer saves to your hard drive (or other storage device), the greater the possibility that the area of the drive that is still storing your file will be overwritten. If that happens, your file will be lost forever.
So if you've deleted a file and you've found this article in an attempt to find a way to recover it, check out that list of file recovery programs right now, choose one, download and install it, and have it scan your computer for all recoverable files. If you're lucky, your file will be in good shape and able to be completely recovered.