Sign in with
Sign up | Sign in
Closed

Listing hidden files at command line

Last response: in Windows 7
Share
Related ressources

mpavao81 said:
How do you list/view hidden files in a DIR using command line.


It is not DIR, but an easy way to list all files AND display the attributes is to use:

C:\> attrib

Type attrib -s -h -r c:/*.* /s /d and press Enter to execute the command.

Allow the command to finish executing (it may take a few minutes). When it’s done, close the command prompt window and check your desktop — your files, hidden by the virus, have been restored. You can use the same trick to restore files the virus may have hidden on other drives, including removable storage such as flash drives and external hard drives; just change the drive letter in the command above to the drive letter of the storage device with the hidden files.
-hisham pasha-
hishampnk@gmail.com

hishampasha said:
Type attrib -s -h -r c:/*.* /s /d and press Enter to execute the command.


The question was only on how to see hidden files, not changing every attribute on every single file. The above step should not be done if not totally sure that you want to do such large file system modification.

hishampasha said:
Type attrib -s -h -r c:/*.* /s /d and press Enter to execute the command.

Allow the command to finish executing (it may take a few minutes). When it’s done, close the command prompt window and check your desktop — your files, hidden by the virus, have been restored. You can use the same trick to restore files the virus may have hidden on other drives, including removable storage such as flash drives and external hard drives; just change the drive letter in the command above to the drive letter of the storage device with the hidden files.
-hisham pasha-
hishampnk@gmail.com



Thanks a lot. The original question did not ask about this issue, but that is exactly what I need to do, for the exact reason you gave. Virus authors must be the most hated people on the planet.
!