3.5 KB "Change Executable Icon" exe for Command Line, working on Windows 10 Version 2004 (Win10 19041.685), based on https://github.com/fatrolls/IconChanger
Change Executable Icon for command line:
Compiled with MSYS2/MinGW-w64:
$ gcc -o cei cei.c -s -O3 -Wl,--gc-sections -fno-asynchronous-unwind-tables -nostartfiles --entry=cei
Usage:
> cei PATH\TO\ICO PATH\TO\EXE [PATH\TO\NEWEXEWITHICO]
Notes:
To view the source code in your browser with original tabbing (4 white-spaces instead of browsers default 8), add ‘/?ts=4’ to url.
Works on Firefox/Chrome based browser, except for edge..
https://github.com/0x546F6D/cei_-_Change_Executable_Icon/blob/main/cei.c/?ts=4