計算檔案數量:
範例輸出:
計算程式碼行數:
範例輸出:
(Get-ChildItem -File -Recurse -Force | Measure-Object).Count
範例輸出:
(Get-ChildItem -File -Recurse -Force | Measure-Object).Count
345
計算程式碼行數:
Get-ChildItem -Recurse -Include *.* | Get-Content | Measure-Object -Line
範例輸出:
Get-ChildItem -Recurse -Include *.* | Get-Content | Measure-Object -Line
Lines Words Characters Property
----- ----- ---------- --------
21685
留言
張貼留言
如果有任何問題、建議、想說的話或文章題目推薦,都歡迎留言或來信: a@ruyut.com