A
A
Alexander Apraksin2020-09-04 17:05:26
Command line
Alexander Apraksin, 2020-09-04 17:05:26

How to display hidden folders in windows as a tree?

The command tree -aand parameter -hiddendo not work.

5f524831a109e485531244.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
res2001, 2020-09-04
@mityoung

Probably because the tree command does not have the --hidden parameter, but neither does dir.
You can write a small script: using dir /ahd /b /s - display a list of hidden directories, save it to a file. Next, go through attrib through each directory from the file and remove the "hidden" attribute, execute tree, set the attribute again with attrib.
Another option is to look for a third-party utility that can build directory trees, including hidden ones.
PS: in general, what do you care about these troubles with hidden directories? What makes .git an eyesore?

U
unseriously, 2020-09-04
@unseriously

And if so:
DIR C:\WINDOWS\SYSTEM32\*.* /A:H - display a list of hidden files and subdirectories from the directory C:\WINDOWS\SYSTEM32

K
Konstantin, 2020-09-04
@Spoyk

tree
-a tree-ad

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question