Help with PowerShell (get-childIitem) - TechRepublic
General discussion
September 28, 2009 at 07:12 AM
maxpowers410

Help with PowerShell (get-childIitem)

by maxpowers410 . Updated 16 years, 9 months ago

Hi everyone;
Have got an interessting assignemtnt from school Im having trouble with. I need to creat a poweshell script that outputs the following in powershell:
It needs to display the content of a directory where; the subfolders are all purple; the script file blue; the compressed files red; and all other file types white.. I would appreciate any help. Im going to start with get-childItem and then pipe it to sort-object, im not sure how to adress the sufolders or the different file types… would greatly appreciate any help/code 🙂 Have a good day 🙂

Regards
Max

This discussion is locked

All Comments