This page has all command prompt for USB data recovery. You deserve to use CMD come recover papers from USB speed drive, pen drive, external hard drive, and hard disk drive on the computer. If the command prompt can"t help to retrieve files, you have the right to use Data restore Wizard to recoup permanently turned off or corrupted files from USB.

You are watching: What is the purpose of the recover command

about the Author

Reviews and also Awards

Recover Deleted papers in windows 10/11

PAGE CONTENT:How come recover documents from USB utilizing CMD attrib and various other command linesHow to recover permanently deleted files from USB v data restore software

Overview of Command Prompt because that USB Data Recovery

Command Prompt, being as one of the comfortable Windows built-in utilities that enable users to take it full manage of her computer, could do you a donate in retrieving documents after hiding, accidental deletion, corrupting, or virus infection. You have the right to recover deleted or corrupted documents from a computer hard disk, USB speed drive, pen drive, memory card, or other external hard drives making use of CMD.

Compared with expert data restore software, the command prompt for data recovery has the following advantages and disadvantages.


Free to usePre-installed ~ above Windows, no have to download any kind of more


Required to enter the command heat manually, not suitable for computer system beginnersNot as an effective as a professional file recovery tool, you may not be able to restore every lost record by using CMD fully

Read this post and also learn just how to recover files from USB using CMD attrib to retrieve concealed files, or use various other command present to recoup data from a pen drive or difficult disk. What"s more, you have the right to use Data restore Wizard come recover documents from USB once the CMD fails.

How come Recover files Using CMD

In the following, you"re walking to learn all data recovery command lines that are easily accessible to usage in some particular situations, including recover files from virus infected tough drive, recover records from corrupted drive with bad sectors and also recover inaccessible records from the raw drive.

Notice:Command prompt"s ability in recovering deleted papers is limited to a large extent, which means that you might not be able to completely restore every lost document by utilizing CMD. Be careful when you are using the command lines. A small wrong form can reason serious results.

1. Recover files from USB making use of CMD Attrib

Applicable to: Deleted, lost, hidden and even virus-infected documents recovery

Supported devices: Windows tough drive, outside HDD, USB, SD card, etc. Storage devices

Attrib command only permits you to recover concealed files. If your records disappeared somehow, you can use the attrib command to check whether the paper is surprise by unintentional procedure or virus infection. For other data loss cases, such as formatting, partition turning RAW, or files being deleting, the attrib command won"t work.

Step 1. Plugin your difficult drive, storage card, or USB journey to your computer.

Step 2. go to the begin menu, kind in "cmd" in a find bar, struggle Enter. Climate you can see something called "cmd. Exe" under a perform of programs.


Step 3. Right-click "cmd. Exe" and also then girlfriend will gain the command windows that allow you to recoup virus-infected files.

Type in "attrib -h -r -s drive letter:*.* /s /d", because that example, "attrib -h -r -s G:*.* /s /d".

(Replace G through the journey letter that your difficult drive or exterior storage maker where you lost files.)


2. Recover Deleted papers from Recycle Bin making use of Command Prompt

Applicable to: Deleted file recovery, recycle bin document recovery

Supported devices: Windows tough drive, Desktop 

If you deleted records to the Recycle Bin, you can either select to right-click records in the Recycle Bin or follow the command currently to restore them come the initial location before emptying it.

Note: The command line have the right to only recover papers that are still in the recycle bin, not records that space not in the recycle bin or ~ above the difficult drive. If you want to recover documents from an cleared recycle bin, below are the tutorials. 

Step 1. walk to the begin menu, type: cmd in a search bar, and also hit Enter. Click "cmd. Exe" under a list of program to open the command prompt.

Step 2. Type: start shell:RecycleBinFolder and press Enter. 

Step 3. select the records to restore.


3. Recover files from RAW Drive making use of chkdsk and also rescan Command

Applicable to: RAW paper system or corrupted file system recovery

Supported devices: raw drive, inaccessible exterior HDD/USB/SD

If girlfriend lost papers on outside storage devices, attach to your computer system in development and open the command prompt in Windows. Log in v your administrator account and password if necessary.

Step 1. On the command window, type chkdsk journey letter: /r/f (e.g., chkdsk d: /r/f) and struggle Enter. (Replace with the journey letter of your storage machine where you shed files.)


Step 2. On the command note window, type diskpart, and then hit on Enter.

Step 3. Type rescan and then hit enter.


Step 4. exit DiskPart, type chkdsk /f d: in CMD and hit Enter. (Replace with the drive letter of your storage device where you shed data.)

Wait for the procedure complete, and you can inspect the maker to watch if your lost papers have to be restored. If girlfriend didn"t restore lost documents using the over command prompt, or you need to gain back files native more complicated situations, such as recuperate data from lost partition in home windows 10/8/7, Data restore Wizard with advanced features introduced below can help you figure out. 

How to Recover files from USB making use of the finest CMD Alternative

Since the command notice is i can not qualify of retrieving papers under countless circumstances, favor restore data indigenous dead computer system hard drive, unformat tough drive, cleared recycle bin recovery, and also so son, you require a CMD different for USB document recovery. Data recovery Wizard can totally replace command prompt and enables you to:

Recover deleted, formatted, and inaccessible data in different data ns situations.Restore photos, audio, music, and also emails from any kind of storage safely and also completely.Retrieve data from the recycle bin, tough drive, USB drive, storage card, speed drive, digital camera, and also camcorder.

To recover documents from USB or pen journey without CMD, execute as follows.

Step 1. Launch Data restore Wizard, float on the partition which you want to recover data from, and click "Scan".

Step 2. Wait for the scan come complete. Then, choose the files you"d like to recover.

Step 3. After selecting the files, click Recover and pick a ar to save the recovered documents at. Make certain not to pick your storage an equipment that made you shed your files.

Final Verdict

This write-up covers all the command lines come recover hidden files, reclaim data native the recycle bin, and retrieve documents from raw partition. Follow the examples and also be careful. Dorn command lines have the right to make her data loss worse. Data recovery Wizard is an easy-to-use record recovery device that permits you to recuperate deleted or lost papers with a couple of clicks. If you are a computer beginner and don"t know exactly how to use command prompt come recover documents from USB, we highly recommend you shot this simple data restore software.

Recover papers from USB Using CMD Attrib FAQ

The following are the highly relevant questions about how come recover files using CMD. Check the brief explanations if you likewise have any kind of of this problems.

What is attrib command in CMD?

The attrib command enables an MS-DOS and also Windows command line user to readjust the attributes of a file or folder. For example, you can recover hidden documents using the attrib command. The attrib command is easily accessible in the Command prompt in all windows operating systems including Windows 10, home windows 8, windows 7, windows Vista, windows XP, and also other older versions of Windows.

How have the right to I recover papers from a corrupted USB?

Is your USB corrupted? how to recover and open records on a corrupted USB drive? usage data recovery regimen to recover documents from corrupted, damaged or formatted HDD, SDD, USB speed drive, exterior hard drive, Pen drive, SD card, CF card, etc..

Step 1. Connect the corrupted USB flash drive to her computer and launch USB data recovery software application on her PC.

Step 2. Select her USB drive, i beg your pardon marks together a removable disk, and also click "Scan" to begin finding her files.

Step 3. Preview and also recover every the documents from corrupted USB.

How perform you attrib a speed drive making use of command prompt?

Follow these steps to recover documents from USB flash drive utilizing CMD attrib:

Step 1. Right-click windows icon and type cmd in the find bar.

Step 2. Select to operation Command Prompt as Administrator. Sign in through your administrator account if necessary.

Step 3. Type: attrib -h -r -s G:*.* /s /d (Replace G v the journey letter whereby you"d favor to show hidden files) and hit Enter.

How carry out you use CMD come recover shed or turned off files?

You deserve to use the attrib command to recover hidden files from a storage journey like tough drives, flash drives, USB. Etc. You deserve to follow these commands in the command prompt and easily retrieve deleted papers from windows 10, 8, 7:

Step 1. Press windows + R key together in a find box, kind CMD.

Step 2. In Command notice window, kind chkdsk drive letter /f and press Enter. ( e.g.: chkdsk D : /f)

Step 3. Press Y "Yes" till the command lines begin again Again. Enter the drive letter and also click Enter.

Step 3. Type drive letter and also press Enter.

See more: Driving Time From Phoenix To San Diego, Ca, Driving Time From San Diego, Ca To Phoenix, Az

Step 4. Type /f --> attrib -h -r -s G:*.* /s /d. This command will recuperate all hidden papers in a warehouse device.

-r means Read-only attribute that means files are readable and they can not be changed-s assigns "System" attribute that the selected multiple files-h command method "Hidden" attribute to only selected files/S suggests to search the particular path consisting of subfolders/D command requires the process folders