0
I had a virus or something on my computer that set the attributes for all the folders in the root of my external drive to system and hidden, and created shortcuts to them. I am now trying to remove these attributes all at once with the following command, but it doesn't do anything:
dir /ash /b | attrib -h -s
According to my understanding of the documentation of these commands, this should work. Is there something wrong here?
Thanks
What a roundabout way of doing things! attrib supports recursion natively, see keltari's answer. – Karan – 2013-02-05T02:01:02.863
Thanks for the explanation as to why it doesn't work. I will try your suggestions. On the other hand, I could also just use my linux machine to do this, although I am not exactly sure how the windows attributes will translate into a linux environment, For instance, this particular thing is not a problem when I just connect the drive to my linux machine (because of the .filename used for hidden folders in unix) – None – 2013-02-05T05:39:55.533