環境変数を参照する %PATH% を表示する。 > echo $env:PATH %APPDATA% を表示する > echo $env:APPDATA 環境変数の値を取得する方法 | Windows と暮ら […]
Articles Tagged: PowerShell
コマンド [PowerShell]
カレントディレクトリの操作 カレントディレクトリを取得する。 > Get-Location カレントディレクトリを変更する。 > Set-Location -Path C:\Windows あるいは、Set- […]
関数 [PowerShell]
関数 関数の概要 | Microsoft Docs [公式] 使い方 関数を定義する。 function Hello($name) { if ([string]::IsNullOrEmpty($name)) { $nam […]
スクリプト (ps1) [PowerShell]
スクリプト 概要 スクリプト | Microsoft Docs [公式] 使い方 PowerShell プロンプトから、スクリプト (.ps1) を実行する。 > .\Path\to\Script.ps1 コマンド […]
コマンドを実行する方法 (Start-Process) [PowerShell]
Start-Process コマンド Start-Process | Microsoft Docs [Official] -PassThru PowerShell の -PassThru パラメータについて | tech […]
PowerShell [Windows]
PowerShell PowerShell | Microsoft Learn [公式] 概要 PowerShell とは | Microsoft Learn [公式] PowerShell – Wikipe […]