# Directory Tree Structure script

Occasional Visitor

# Directory Tree Structure script

Hi ,

I am trying to create a Script were it would list the directory path in tree format. Basically lets say c:\program files\common files\microsoft is the given path. i need a output like
c:\
c:\program files\
c:\program files\common files\
c:\program files\common files\microsoft

with get-child item i can create a folder structure in tree format but not the other of given path.

please share if you script or possible logic to achieve this

0 Replies