Hide all subfolders in a folder using batch file

March 4, 2012 at 05:06:06
Specs: Windows 7
i want to hide all subfolders in a folder using a batch file.

See More: Hide all subfolders in a folder using batch file

Report •


#1
March 4, 2012 at 08:50:47
what i mean is that in NEW FOLDER containing the batch file and the folder1, folder2 and etc folder..now what i want is when i run the batch file the folders under the NEW FOLDER(folder1, folder2 and etc) will be automatically hide..

Report •

#2
March 4, 2012 at 09:10:33
pretty sure that IVO's solution should work.

md c:\newfolder\newfolder1
attrib +h c:\newfolder\*.* /S /D
attrib -h c:\newfolder

this would create both new folders? hide it all and then unhide the parent

mike


Report •

#3
March 4, 2012 at 09:11:24
sorry IVO, posted in between without seeing your post.

mike


Report •

Related Solutions

#4
March 4, 2012 at 09:17:14
IVO: Even simple questions such as this aren't answered.
The topic was less than 3 hours old. On a Sunday.

Still, it looks like a lot of the people who would answer these questions either aren't visiting this site anymore, or have a severe case of apathy. (This technically includes you.) Kinda sad. I'm only posting once or twice a week, and that's after I left this site for, what, 2 months?

How To Ask Questions The Smart Way


Report •

#5
March 4, 2012 at 13:24:04
I agree with you IVO, most of the members 'r not visiting more often last months.
Maybe its of the year 2012..replying within the same minute is sooo 2011 :)

Just joking, but personally I know I did not post for like several months.

Happy is ONE who says I am an OttoMAN.


Report •

#6
March 4, 2012 at 13:39:09
IVO,

Maybe people are getting tired of the homework questions and questions that can be answered by a simple google search.


Report •

#7
March 6, 2012 at 16:05:58
2 days late, but I'm new and found this site and intend to help out - I am pretty proficient at batch and I like fixing problems

for /f %%a in (dir "New Folder" /b /a:d) do (
attrib +h "New Folder\%%b"
)

that should hide all folders within "New Folder", unless that previous post solved your problem


Report •


Ask Question