How do I list folders and files using the PowerShell tree command? Is it possible to color format the output for distinct files and folders?

  • Similar to stackoverflow.com/questions/27447014/… – spikey_richie Nov 20 '17 at 9:11
  • See tree /?. "/F Display the names of the files in each folder." As for colors, superuser isn't a script writing service. If you're stuck with a specific problem and post your code, people here would love to help you. – root Nov 20 '17 at 14:23

Simply use tree /F on any powershell instance to have the same behavior the normal tree on UNIX has.

The tree alone on Powershell shows only folders but not files in them.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.