Topics
Loading...
Wednesday, March 20, 2013

Fix Hidden Files/Folders or Folders Showing As Shortcuts In USB / SD card / HDD without any software

9:28 am


USB drives have became a major transfer tool in the computer industry .  
Huge number of People uses  USB sticks / SD cards or External HDD to Store and transfer data.
These drives are so easily affected by Virus .. and one of the most annoying effects users face is when they connect there drive into an affected and there files appears as shortcuts or goes missing which is likely caused by the AUTORUN virus

However If the files are set hide in a drive you can view by disabling the "hidden files and folders" attribute option which can be configured through Tools/Folder Option / View tab  
But Some times the hidden folders are not shown even through disabling the folder option.

Using Command Prompt :

1 . Plug your Drive in your computer
     -- Make a note of the drive letter assigned to your drive

2 . Open Command Prompt
     -- Click Start - > Run
         This will bring up the dialog box the type "cmd" without quotes and press Enter



3. Go to your drive withing the command prompt by typing
                           "H:" without the quotes 
Note : In this case I assumed "H" as my driver letter . Change it to your driver as if your drive letter is E change type E: then press Enter 
                                                            Then Command Prompt will show H:\>



     
3.  Then Type the following and press Enter

                                     attrib -s -h -a -r /s /d *.* 
      Note : The spaces on the above code 




When you open the drive you will find all your files and folders back .


Attribute Command Parameters

  • -  means clears an attribute
  • h means hidden file attribute
  • s means system file attribute
  • a means archive file attribute
  • r means read-only file attribute
  • /s means process matching current folder and all sub folders
  • /d means process folders
  • *.* means wild card for all files.



If You downt want to use command prompt here is the alternative way 

USB, MicroSD, MiniSD or other Mmory Cards issue:

     1. Connect your USB or memory card to the PC or laptop.

     2. Copy these lines and paste it into a "new text file" 

@echo off
attrib -h -s -r -a /s /d drive_letter:\*.*

     3. In the 3rd line put your drive letter name (Example: E or F or  G  etc.) instead of "drive_name"

     4. Save the text file as any_name.bat

     5. Double click on the any_name.bat file and it will run in the command prompt and see the hidden      
          
files/folders back 

     6. Delete the shortcuts and unnecessary files and folders from the drive.

Local drive issue:

1. Type this lines and paste it into a new text file

@echo off 
attrib -h -s -r -a /s /d D:\*.*
attrib -h -s -r -a /s /d E:\*.*
attrib -h -s -r -a /s /d F:\*.*
attrib -h -s -r -a /s /d G:\*.*
attrib -h -s -r -a /s /d H:\*.*
attrib -h -s -r -a /s /d I:\*.*
attrib -h -s -r -a /s /d J:\*.*
@echo complete.

2. Save the text file as a bat file (example: kiltek.bat)

3. Double Click on the bat file to run the command 



As far as I know these tutorial is applicable to win XP /Vista/7 .





0 comments:

Post a Comment

 
Toggle Footer