Attrib command [Solved/Closed]

rmb - Apr 14, 2012 at 03:04 PM - Latest reply:  asjdasdasd
- Feb 28, 2018 at 08:29 AM

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 

24 replies

jack4rall 6521 Posts Sunday June 6, 2010Registration dateModeratorStatus December 30, 2015 Last seen - Updated by Jeff on 24/03/17 at 09:02 AM

Try this 1

Follow the below instructions.
  • 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 or click on the below link and download the Dot Net Framework.]

  • 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 :

Good Luck
A great help!!
thank youuuuuuuuuuuuuu
kis kis kis
Hey thanks a lot! You saved me- my life and breaths and much more!!! Thanks Again!!
Thanks For Helping to get remove my virus <3