lol.. CHronicLoser.. stop before you kill me.. roflmao.
Anyways, you can use that attrib command over entire directory contents.. So if anyone's ever trying to find out where the hidden files ran off to - if you have any idea about it's containing directory - go in there and do a:
attrib -GetRidOfAllOfThem *.*
naah am just kidding.. doing a attrib -h *.* would suffice
Btw, your files never really get hidden this way - they just fail to show up on a diectory listing with the
dir command or in the explorer file view because of their
+h or +s attributes. But if you have the
Tools > Folder Options > View > Show hidden files and folders in your Windows Explorer turned to ON, all such files become visible immediately. The same can be achieved by using
dir /a command in console.
Incidentally since we are taking about dos based attributes, I'd like to mention one little option that can be used with the "dir" command. It goes like:
dir /o:n /pCryptic ??
/o: X - means the ORDER in which you want to files to be displayed. X here can be replaced with anything from
n - for name based alphabetical listing
t - listing where files are grouped according to their type
d - to group files according to date of creation
s - to group them by their sizes
The last
/p option tells dir to display the files PAGE-BY-PAGE so they don't just scroll off the screen without you being able to see the list completely.
If you don't want to specify these options over and over again, everytime you do a dir, then you can include this syntax in your
autoexec.bat file.
SET DIRCMD = /o:n /pAs you can see, this will set an environmental variable that the dir command reads while listing files.
All the best

Comment/Reply (w/o sign-up)