Download Article
Download Article
It is common these days to lose your data due to virus affecting you flash drives, memory cards etc. The virus can be removed and the data can be recovered easily by using the command prompt. Just follow the simple steps.
Steps
-
Open the drive that contains the virus.
-
Press Ctrl+A to select all.Advertisement
-
Hit Alt+Enter to view properties.
-
Note the total space consumed by the data of the drive.
-
Compare it to the used space of the drive. If the used space exceeds the total size of the data, then it is possible to recover the lost data.
- In other words, if the drive is showing more space consumed than the actual data inside the drive, then your lost data can be recovered.
Advertisement
-
Press Ctrl+R at the desktop.
-
Type cmd and hit Enter.
-
Type the command: attrib -a -r -h -s /s /d x:\*.*
-
Replace x with the drive letter and hit Enter.
- The drive will now contain a folder without any name. This folder contains your lost data.
-
Delete any unnecessary files that you see such as autorun.inf, recycle.bin etc.
-
Backup your data and format the drive, if possible.
Advertisement
Community Q&A
Search
-
QuestionWhen you click properties on This PC or My computer, there is "Tools", when you click it, what do "Error Checking" do? Since my laptop always get lag/stuck at desktop after login.Evan BoehsCommunity AnswerTry installing an antivirus if you can, otherwise you will need to identify the file first, and then Search for the CMD in the start menu, press right click on the CMD icon and hit “Run as Administrator” Now, type wmic and hit Enter (c:\Windows\system32>wmic). You will see a wmic:root\cli>. Now type “product get name” (wmic:root\cli>product get name). Now, you will see a list of all programs installed using Windows installer. Now type, product where name=”name of program” call uninstall and press enter. (wmic:root\cli> product where name= “name of program” call uninstall). Also, if you can, open task scheduler and look there to check that it won't run at startup!
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
- If the above method doesn't work, try using the command prompt as Administrator.Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
Warnings
- It may take a while for the command to execute. Be patient.Thanks
Advertisement
About This Article
Thanks to all authors for creating a page that has been read 68,276 times.
Advertisement