Solved

Windows, undelete a file

Posted on 2013-11-06
5
212 Views
Last Modified: 2013-11-14
I am using Windows 7

I deleted a file from the command console

How can I UN-delete a file from the command console ?

Thanks
0
Comment
Question by:Los Angeles1
  • 3
5 Comments
 
LVL 24

Assisted Solution

by:aadih
aadih earned 250 total points
ID: 39627573
Download, preferably using another computer, Recuva from:

http://www.piriform.com/recuva >

and without using your computer to do any other thing, install and run it.

You could also try Wise Data Recovery 3.42 (portable) from:

http://www.wisecleaner.com/download.html >
0
 
LVL 19

Assisted Solution

by:Miguel Angel Perez Muñoz
Miguel Angel Perez Muñoz earned 125 total points
ID: 39627574
You can try with recover, or installing third party recovering tool.

Recover usage is: recover drive:path\filename
0
 
LVL 24

Assisted Solution

by:aadih
aadih earned 250 total points
ID: 39627579
Recuva portable version is at:

http://www.piriform.com/recuva/features/portable-version >
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 125 total points
ID: 39628105
There is no built-in way I've ever seen or heard of that can allow you to undelete a file from the command line.  There are possibly third party utilities, but I don't know them since I don't use them and never had a need to - in General, GUI works best.

Unlike GUI deleted files (assuming no special action was taken at the time of deletion) that go to the Recycle Bin, command line deleted files are PERMANENTLY deleted when you delete them (in the sense that the file system is told to destroy record of them instead of moving them to a recovery area that requires one more step to permanently remove.

If you've deleted from the command line and want to recover the file, there are three options I see:
1. Check if Volume Shadow Copy is enabled (it should be and if it isn't enable it for the future).  Then restore a "previous version"
2. Go to your backups
3. Use a third party utility - BE CAREFUL - the mere act of installing the third party utility could permanently delete the file in an unrecoverable way.  For this reason, you generally want to install the recovery software to a different drive and/or, if neither of the other two options are possible, POWER OFF (do NOT shut down, push the power button and hold it in or pull the power cord) the machine with the deleted file and then boot to a boot disk with recovery software software or remove the drive and install it in another system with recovery software already installed.  EVERY SECOND THE PC IS ON, other background services are potentially writing data and COULD end up writing data to the deleted file's location on disk making in unrecoverable.  Even a shutdown (especially a shutdown) flushes out data and causes many writes which is why a hard power off is preferable in this circumstance only.  It allows a greater chance at recovery.  But understand, once deleted, recovery is NOT GUARANTEED!
0
 
LVL 24

Expert Comment

by:aadih
ID: 39628135
Great information, leew. Much thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Update Services 1 95
PowerShell Script failing 3 58
Microsoft License Verification Process?? 12 643
how to export this list 4 60
This article covers how to install the Microsoft Windows Operating System (OS). What is covered in this article:  > Different Versions and Editions of the Windows OS  > Upgrading versus Fresh Installation of the OS           - Steps to take pr…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question