none
Newbie

    질문

  • Hello,

       I an very new in scripting and trying to learn what ever I can using tech net and other books. While referring i got a command called 

    dir | sort-object -property length,name

    i know what actually the above command does 

    My question is i want to know what more can be applied after dir | command 

    precisely i am looking for DIR | HELP


    http://www.virmansec.com/blogs/skhairuddin

    2012년 3월 19일 월요일 오전 6:49

답변

모든 응답

  • It depends what you want to achive.

    • you can select particular property (use Dir | GM command to get all property)
    • You can Filter Dir/File
    • You can loop through Dir/File
    • And much more...

    you can run get-help dir -full command to get more detail.

    Hope this helps...!!!


    Thanks & Regards
    Bhavik Solanki

    Please click “Mark as Answer” if this post answers your question and click "Vote as Helpful if this Post helps you.

    2012년 3월 19일 월요일 오전 7:04
  • Thanks  for the reply I tried 

    get-help dir -full

    but i cannot see these command within the help sort-object -property length,name   




    http://www.virmansec.com/blogs/skhairuddin

    2012년 3월 19일 월요일 오전 7:29
  • Sort-Object is altogether different command:

    Check this link to know more about Pipeline in powershell: http://www.computerperformance.co.uk/powershell/powershell_pipeline.htm


    Thanks & Regards
    Bhavik Solanki

    Please click “Mark as Answer” if this post answers your question and click "Vote as Helpful if this Post helps you.


    2012년 3월 19일 월요일 오전 7:38
  • Oh I see that means  I am attaching a dir command with another command .

    THanks 


    http://www.virmansec.com/blogs/skhairuddin

    2012년 3월 19일 월요일 오전 8:05