Translate

Thursday 17 January 2013

How to remove shortcut/hidden files problem in Pen drive/Local drive

Hidden files problem in Pen drive:

            When we inserting our pen drive in system,sometime we found hidden or shortcut of our important files due to we used pen drive in unsure system earlier. let we see how to remove those shortcut files in  pen drive.

In  my system when i inserting my pen drive and create New folder. It shows as New folder(2)->(Because already there is a folder name as 'New folder' but it is hide).




To make visible of hidden files we generally click "Organize-> Folder and search options -> View -> Show hidden files, folders and drives".

Even if you try the above way and didn't get your important files/folders. Try the following step.

* Go to RUN.
Type CMD.
In the opened cmd prompt type following:

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

instead of drive_letter type your USB drive letter. My pen drive letter is J: and command look as



Here atrib=attribute, "-"=remove attribute/permits, h=hidden s=system, r=read-only, a=archive, /s=sub directory, /d=directory, drive_letter=the letter of the drive shown in windows explorer (e.g. j:,h: or D:) and *.* is called the wild card for all files.

Now all files and folders will be normal. 



It make visible the hidden files and folders. By using this way you can also delete the unwanted shortcuts/files in the drive.

Local drive issues:

* Copy the following lines into '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.

* Save the file as bat file (eg: karthy.bat)
* Run this file double click on it.

This is worked in Windows 7/Xp. To run bat file you need administrator privilage..





4 comments: