Table of Contents
- Video Recovery
- SD Card Recovery
- Recycle Bin Recovery
- Recover Data from USB
- Recover Deleted Emails
- Hard Drive Not Showing Up in Windows
- Recover Unsaved Word Documents
- Recover Deleted Files in Windows 10
- Recover Files from Virus Infected Hard Drive
- Best Free Photo Recovery Software
- Recover Files from Formatted Hard Drive
CMD, as known as Command Prompt/cmd.exe, is available in most Windows operating systems. By entering a specific command, users can self troubleshoot certain Windows issues. Knowing useful CMD commands will let you have more control over your Windows PC.
"I'm trying to find a free method to recover some deleted photos from a 64GB SanDisk SD card. I heard that using CMD might work, but where should I start?" One user asked this question in a forum wondering how to recover the SD card using CMD. If you have the same question, in this article you will get the answer.
What is the Attrib Command?
In rare situations, the memory card files are not showing up, missing somewhere, or disappearing without a trace, whereas most of the time, data are deleted or corrupted. The way you lost files from the SD card determines the possibility of whether the attrib command can get the data back or not. The attrib command is designed to display, set, or remove attributes assigned to files or directories. Microsoft gives a full explanation to the attrib command, along with some examples.
Let's make it simple. The attrib command is usually used to recover files hidden in SD cards/memory cards that have been attacked by viruses. If you have accidentally deleted files or photos from the SD card or got it formatted without a backup, there is no way to recover files from the SD card using CMD for Windows. Whenever you Instead, seek help from exclusive data recovery software.
Method 1.Recover Deleted Files from Memory Card Using Recovery Software
To achieve a high success rate of deleted file recovery from a formatted SD card, third-party SD card recovery software is recommended for you to try. EaseUS Data Recovery Wizard can perfectly replace the role of the attrib command in retrieving hidden files.
Unlike the CMD command which requests computer skills, EaseUS file recovery software is designed for all levels of users with an intuitive interface and plenty of auxiliary functions.
Video Tutorial of Recovering Deleted Files from Memory SD Card
It specializes in recovering data from all kinds of data loss problems, including deletion, formatting, partition loss, RAW, and other inaccessible issues.
Step 1. Connect the memory card to your computer and launch EaseUS memory card recovery software on your PC. The SD card will be listed under the Devices section. Choose the SD card and click "Scan" to start looking for your lost data.
Step 2. The software will generate a quick scan and then a deep scan. The deep scan is powerful enough to find all lost files that even lost file names. After the scanning process, you can check and filter wanted files in this program. Click "Filter" if you are looking for a specific file type, like photos, documents, videos or emails...
Step 3. You can directly double-click the files to preview the content. After this, you can choose wanted files and click "Recover" to restore them to a secure location on your PC or other external storage devices.
Method 2. How to Recover Hidden Files from Memory Card Using CMD
If you lost the memory card files without an apparent reason, it's likely that they are hidden. Usually, the culprits can be a virus, malware, encryption software, or other system manners, such as Windows system update, reinstallation, and so on. You're supposed to unhide all the missing files and folders by using the following command lines. They'll return all invisible items to the original location until you execute the entered commands.
Step 1. Use a card reader to connect the memory card where you deleted files to a Windows computer. Assuming that the drive letter of the card appears as "drive G:".
Step 2. Press "Windows + X" keys and choose Command Prompt (Admin) to open the Command Prompt this time.
Step 3. Type attrib -h -r -s G:\*.* /s /d. This attrib command will recover everything that you cannot see from the memory card.
- –h clears the Hidden file attribute.
- –r clears the Read-only file attribute
- –s clears the System file attribute.
- /s applies attrib and any command-line options to matching files in the current directory and all of its subdirectories.
- /d applies attrib and any command-line options to directories.
After clearing all the protected attributes of files, you could see one or more new folders appearing on the SD card again.
Method 3. Recover Hidden Files using CMD Alternative
Manual execution of the command line is suitable for computer professionals, since incorrect commands can do more harm than good. Therefore, for security and usability, we strongly recommend you try an automatic command line alternative - EaseUS CleanGenius. It is a practical tool that enables you to check and fix file system errors, enable/disable write protection and update your system with one-click instead of typing intricate command lines.
Follow the simple steps below to show hidden files with this 1-click-fix software.
Step 1. DOWNLOAD EaseUS CleanGenius for Free.
Step 2. Start EaseUS CleanGenius, choose "Optimization" on the left panel. Next, click "File Showing" on the right panel.
Step 3. Select the hard drive and click "Execute".
Step 4. After the operation completes, click the View button to check the hidden files.
Was This Page Helpful?
Tracy joined in EaseUS in 2013 and has been working with EaseUS content team for over 7 years. Being enthusiastic in computing and technology, she writes tech how-to articles and share technical solutions about Windows & Mac data recovery, file/system backup and recovery, partition management and iOS/Android data recovery.
Author Jean has been writing tech articles since she was graduated from university. She has been part of the EaseUS team for over 5 years. Her special focuses are data recovery, disk partitioning, data space optimization, data backup and Mac OS. By the way, she's an aviation fan!
EaseUS Data Recovery Wizard is a powerful system recovery software, designed to enable you to recover files you’ve deleted accidentally, potentially lost to malware or an entire hard drive partition. Read More
EaseUS Data Recovery Wizard is the best we have seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past. Read More
EaseUS Data Recovery Wizard Pro has a reputation as one of the best data recovery software programs on the market. It comes with a selection of advanced features, including partition recovery, formatted drive restoration, and corrupted file repair. Read More