2019-01-23から1日間の記事一覧
Test-Pathコマンドレットを使う。存在すればTrueを、存在しなければFalseを返す。 PS > Test-Path C:\WindowsTruePS > Test-Path C:\Windows\notepad.exeTruePS > Test-Path C:\Windows\notepadd.exeFalse -PathTypeオプションを使うことで、ディレクトリー…
Test-Pathコマンドレットを使う。存在すればTrueを、存在しなければFalseを返す。 PS > Test-Path C:\WindowsTruePS > Test-Path C:\Windows\notepad.exeTruePS > Test-Path C:\Windows\notepadd.exeFalse -PathTypeオプションを使うことで、ディレクトリー…