2021-01-01から1年間の記事一覧

コマンドプロンプトから Powershell で得た各種情報を取得する

1.コンピュータのOS Caption を取得 @echo off rem (Get-WmiObject Win32_OperatingSystem).CaptionFOR /F "usebackq delims=" %%A IN (`powershell "(Get-WmiObject Win32_OperatingSystem).Caption"`) DO set result=%%Aecho %result% 2.現在の日付取得…