If you want to make in command line in windows all files and directories non-hidden attrib -s -h *
will not work.
Windows Command line: Unset hidden and system attributes for all hidden files
command line
Related Question
- Windows – FOR Command Cannot See Hidden Files
- Windows – Disable Windows 7 for hidden files and folder search
- Windows – Remove attributes to sub folders and files
- Windows – How to toggle Show/Hide hidden files in Windows through command line
- Windows – Enable/disable the “Show hidden files” setting from the command line
Best Answer
You didn't mention which OS are you using, but since the command that you used
didn't work, I'm guessing you used it without administrator priviliges.
The method I use is:
Run command prompt (Start -> Run -> CMD for XP, or for Vista and 7 Start -> type CMD in search box, right click and run as Administrator), type the following command:
This will remove the Hidden and System attribute of all files in the yourfolder folder on the D: drive.
The /S and /D arguments are optional.
/S will recurse down into all sub folders and
/D will unhide the folders themselves if they have the System or Hidden attribute set.
I regularly use this to clean customer virus infected flashdrives, as some viruses tend to hide your files and replace them with infected copies of the virus itself.