Attrib command [Solved/Closed]

 A.S.K -

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 to solve this issue.

1 reply

Registration date
Sunday June 6, 2010
Last seen
July 16, 2020

Follow the below instructions.
  • First remove the autorun.inf file.
  • Click on this 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 also from it.

Note: Make sure Dot Net Framework is installed in your PC or download the Dot Net Framework from here

  • 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: You need to replace the letter G with your pen drive's 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: 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
  • Update it > Perform Full Scan
  • Note: Default selected option is "Quick Scan".

Good Luck
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2832 users have said thank you to us this month

Hey thanks a lot! You saved me- my life and breaths and much more!!! Thanks Again!!
Thanks a lot.. :)
Thanks For Helping to get remove my virus <3
Thank you so much!!!