• get-childitem -Recurse -force -filter *.txt  <==>  dir /s *.txt 
    • -Recurse 遞迴
    • -force     列出隱藏檔
  • get-content a.txt  <==>  type a.txt
  • remove-item -Recurse *.txt  <==>  del /s *.txt
  • Write-Output "a is $a"  <==>  echo a is %a%

 

資料參考:Windows PowerShell In Action By Bruce Payette

arrow
arrow
    全站熱搜

    ayowu 發表在 痞客邦 留言(0) 人氣()