Windows wmic 命令 (以取得系統資訊為例)
print_pc_spec.bat
------------------------------
::得到系統資訊.bat,執行bat檔案即可
::系統資訊輸出到HTML檔案,檢視幫助: wmic /?
::wmic [系統引數名] list [brief|full] /format:hform >|>> [檔名]
wmic bios list brief /format:hform > PCinfo.html
wmic baseboard list brief /format:hform >>PCinfo.html
wmic cpu list brief /format:hform >>PCinfo.html
wmic computersystem list brief /format:hform >>PCinfo.html
wmic diskdrive list brief /format:hform >>PCinfo.html
wmic memorychip list brief /format:hform >>PCinfo.html
::擷取部分資訊
::wmic memorychip get devicelocator, manufacturer, partnumber
------------------------------
參考資料