The attrib command allows an MS-DOS and Windows command line user to change the attributes of a file or files. For example, you could make a file hidden using the attrib command. For example, you could make a file hidden using the attrib command. Enter this command: attrib -h -r -s /s /d g:. You can copy the above command Right-click in the Command Prompt and paste it. Note: You need to replace the letter G with your pen drive's letter. Now check for your files. OR Click on Start Run type Control Folders and press Enter. Folder Options will be opened. Click on the View tab.
Command Prompt can troubleshoot certain issues related to Windows including external hard drive recovery, memory cards and flash drives recovery. Being one of the most powerful inbuilt utility tool, it helps users to retrieve the files lost due to accidental deletion, virus attack.
Along with it, Command prompt repairs bad sectors on storage devices and convert Raw File System to NTFS for free. So if you have accidentally deleted or lost files, you can simply use Command prompt to recover it. File Structure:Before going further let’s understand the file structure firstA file consists of two parts:✓ A directory which consists the file name and the list of the blocks✓ The actual blocks which contain the dataWhen a file is deleted, only the directory is removed whereas the actual block if not overwritten or modified, still contains the files. Thereby, the directory entries are marked ‘available’ and are hidden from the Operating System.
In such cases, you can using the command prompt. Recover your files using Command Prompt:One of the most effective methods to recover deleted files from the external drive is through Command Prompt. Command Prompt executes commands to perform the assigned task.
That said, there are some commands, which can recover your deleted files. They are as follows:1. Recover files from your external driveIf you have accidentally deleted files from the storage drive such as hard drives, USB, flash sticks etc.
Follow these commands in command prompt:i. Press Windows key + R and in the search box, type CMDii. In the Command Prompt window, type chkdsk ‘drive letter’ /f and hit Enter.For example: C: USERS PROGRAM FILES chkdsk D: /fiii. Press Y until the command lines start againiv. Type the drive letter again and hit Enter (The command line will go back to the start)v. Now, type drive letter: attrib –h –r –s /s /d. This command will recover all the files in the storage drive (attrib -r -s drive:)Where,–r is Read-only attribute: Files are readable and cannot be changed–s assigns ‘System’ attribute to the selected files–h command assigns the ‘Hidden’ attribute to the selected files‘/S’ implies to search the specified path including subfolders‘/D’ command includes process foldersvi.
Once the process is complete, a new folder is created on your external drive with all the recovered files. Probably, the files will be in.CHK format. Change the file format and save the files at the preferred location2. Restore files from Recycle Bin using Command Prompt:When the Recycle Bin becomes full, Windows deletes files to make space for the newly deleted ones. However, these removed files are still recoverable until the Recycle Bin is emptied.Follow these commands to restore files from Recycle Bin:i. In the command prompt window, type: start shell:RecycleBinFolder and press EnterFor example: C: start shell:RecycleBinFolderii.
Select the files and restore them Recover files when command prompt does not help youEven though you can recover deleted files through Command Prompt but the prerequisite is that you must be familiar with technical jargons. The reason being, you have to type in many commands and if you’re not familiar with the command lines, then it may seem complicated.Furthermore, Command Prompt cannot recover files from a formatted storage drive, for that you need to leverage an external drive recovery software.
Software can assist you in recovering your deleted files from the external drive hassle-free. It doesn’t require any familiarity with the command lines and is quite easy to use.Watch this video to see how easily Stellar Data Recovery- Standard for Windows recovers lost or deleted dataAfterpieceYou can perform advanced administrative functions via Command Prompt. But you need to get familiar with each parameter and how they can be combined to achieve the desired result. Sometimes, the process gets complicated. On similar lines, recovering deleted files should be a simple and hassle-free process and that is when Stellar Data Recovery- Standard for Windows rises to the occasion.
Hi Isha, I am suffering from the same problem. I tell you the whole incident,3 days ago i saw an option in Computer=Properties that “compress files to save space”, as I had not enough space on my hard disk, so i checked this bOx. A process started to compress the files of both local disks (C and D).Next time i started my pc it said“bootMGR is comressed Press LSHIFT+CTRL+Delete to Restart”.I got horrified with this note. I knew that all this happened due to that compression process. I inserted window disk in pc and from repair i opened command prompt=diskpart and after selecting hard disk i entered.’clean’ command.
I thougt that this command will restore that compession task.But all my hard disk was cleaned and ‘unallocated space’ name appeared.so i lost all my data from hard disk. Then i just installed window on my pc and that “unallocated space” changed to “Local Disk C” That data meant everything to me, I collected that data from last four years. I have tried to recover my data from some softwares but all are demanding money ($) for activation to use that software Kindly tell me how to get that data back fully. From command panel or any recovery software that does not demands money. As I dont have any money, I am a Student Please help me recover all my data (all happened due to diskpart clean command)kindly email me the way. As i cant come to this website again and again.please help me.
I received this question from Many of my Readers and wrote the easiest way to Remove Shortcut Virus from any Pendrive or PC. Having some important files in your Pen drive and when you found those files turned into shortcuts, It will be really Shocking, I’ll write out the different possible solutions to remove these shortcut virus and hopefully one of them will work for you. Remove Shortcut Virus from PCI have come up with 3 different solutions (updated 2018) to remove shortcut virus from pen drive, a Shortcut virus Remover tool (Checkpoint 3) and what if the problem is with your PC? You can find a solution at the end to recover your PC too. What is A Shortcut Virus? (Skip this if you don’t want to know)Shortcut virus is a virus which Enters into your Pen drive, PC, Hard Disk, Memory cards or mobile phone and changes your files into shortcuts with the original folder icons.
Hi.I downloaded the application and using it to delete all the files in my pendrive. But just within few second all the files reappear. I scan my computer too but it stated no shortcut virus found.What should I do? I followed your steps and insert command in cmd as well. Yet it doesn’t make any changes.I can actually open all my files but all the files are still with the shortcut icon.
And when i plug in other pendrives, they get infected as well. Need your help!! I really dont know what else can I do anymore to get rid of all those annoying shorcut virus.