Attrib command [Solved/Closed]

Ask a question rmb - Last answered on Nov 29, 2016 at 07:35 AM by Yawar Khattak

I could not able to get my hidden file in external hard disk using attrib -r -a -s -h command, My file name is New Folder 2.

after running the command dir/ah the file name is showing as New Folder <2> please help me out solving this issue..
See more 
moins plus

Try this 1

Follow the below instructions.

1) First remove the autorun.inf file.

Click on the below link and download the file "AutorunExterminator"

Extract it --> Double-click on "AutorunExterminator" --> Plug your pendrive now.

This will remove the autorun.inf files from drives and plug your handy drive to

remove the autorun.inf file from it also.

[Note : Make sure Dot Net Framework is installed in your PC.


Click on the below link and download the Dot Net Framework.]

2) Click on "Start" -->Run --> type cmd and press Enter.

Here I assume your pendrive drive letter as G:

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 : Replace the letter g with your pen drive letter.

Now check for your files.


Click on Start --> Run --> type control folders and press Enter.

"Folder Options" will be opened. Click on the "View" tab.

Now select the option "Show hidden files, folders or drives" and uncheck the

check box "Hide protected operating system files" --> Click on "OK" button.

Now look for your hidden files in your drive.

[Note : Later undo the changes you have made by once again going to "Folder

Options" --> Click on "View" tab and click on "Restore Defaults" button --> Click

on "OK".]

3) After that, download the Malwarebytes' Anti-Malware from the below link

Update it --> Perform "Full Scan"

Note : Default selected option is "Quick Scan".

Good Luck
steven jan- Nov 27, 2013 at 06:20 AM
thanks a lot!
elahe- Dec 29, 2013 at 10:28 AM
lots of thnks:)
Salman- Jan 14, 2014 at 11:20 AM
Thanks alot, it really worked, God bless u:)
Yawar Khattak- Nov 29, 2016 at 07:35 AM
Thanks a lot Dear

Member requests are more likely to be responded to.

Members can monitor the statuses of their requests from their account pages.

A CCM membership gives you access to additional options.

Not a member yet?

Sign up now. It takes less than a minute and is completely free!