xiaozi 2020-01-02 00:15:18
获取exe图标
@echo off
setlocal
set "exe_in=%~1"
set "ico_out=%~2"
set "psCommand="[void][Reflection.Assembly]::LoadWithPartialName('System.Drawing');^
[Drawing.Icon]::ExtractAssociatedIcon(\"%exe_in%\").ToBitmap().Save(\"%ico_out%\")""
powershell -noprofile -noninteractive %psCommand%%