前回作ったスクリプト(test-d_9.ps1)は次の通りだ。 #!/usr/bin/env pwsh # 1つの引数が必要。引数はディレクトリパス。 if (0 -eq ...
This simple script tamed my Downloads folder.
Write-Hostコマンドレットを、Write-Errorコマンドレットに置き換えると、出力先がストリーム6からストリーム2に切り替わる ...
Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.