Skip to content

Instantly share code, notes, and snippets.

@tanghaiduong
Created September 24, 2014 13:25
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tanghaiduong/a8ba8a86dd9eca8b3b80 to your computer and use it in GitHub Desktop.
Save tanghaiduong/a8ba8a86dd9eca8b3b80 to your computer and use it in GitHub Desktop.
How To Show All Files And Folder Hidden By Virus Using Command Prompt In Windows 8, 7 and XP
1. Open Command Prompt (CMD) as an Administrator.
2. Navigate to the drive whose files are hidden and you want to recover.
3. Then Type attrib -s -h -r /s /d *.* and hit Enter.
4. That is it. Now you will get all the hidden files and folder as general files and you can use it.
@markuspaulo
Copy link

How to the virus files?
All file are access denied?
How to delete?

@roba23
Copy link

roba23 commented Feb 22, 2023

thank you..if you see this comment i am trying to learn coding and any advise will be appreciated than you

@Binith215
Copy link

After type it says parameter format not correct
Screenshot_1

@roba23
Copy link

roba23 commented Mar 4, 2023

change /d to /e and it should work

@Shivamgodofwar83581
Copy link

After type it says parameter format not correct Screenshot_1

use ls -h

@alagemoo
Copy link

This guide solved the problem for me.
Thank you

@christdevtech
Copy link

@Binith215 The issue with your try is that you put a space before the second *. Remove that and all should be fine

@christdevtech
Copy link

After type it says parameter format not correct Screenshot_1

use ls -h

You put a space before the second asterisk (*). Remove the space and try again.

@wasif07
Copy link

wasif07 commented Sep 29, 2023

To view hidden files/folders:

Go to your command prompt and type:
ls - h (for windows)
ls -a (for MAC)

This will display, all the hidden files in that particular folder.

@Horlydan
Copy link

i tried the code and it says access denied
17062023793902577160808605581426

@yunghog
Copy link

yunghog commented Mar 23, 2024

i tried the code and it says access denied 17062023793902577160808605581426

Use powershell or open cmd as administrator

@nono55555
Copy link

Hey guys, instead of telling what to modify or what to delete, just copy & paste this
attrib -s -h -r /s /d .
discard if it said Access Is Denied it's for System Volume information that we have no business in it
good luck..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment