Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Nou pe simpatie: amy70 pe Simpatie.ro
 | Femeie 24 ani Bucuresti cauta Barbat 31 - 59 ani |
|
|
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| pus acum 3 luni#1 |
|
|
I wasn't able to extract an icon from an exe file with Nirsoft IconsExtract or other similar tools. Nirsoft returned nothing (0 files in exe), Resource Hacker errored.
Used Powershell to extract an icon.
First, created a shortcut to the exe file using Powershell (although normal send to - desktop to create shortcut is just fine:
$shell = New-Object -ComObject WScript.Shell $lnk = $shell.CreateShortcut("$env:USERPROFILE\Desktop\test.lnk") $lnk.TargetPath = "C:\Path\file.exe" $lnk.Save() |
Then this worked to extract the icon using the shortcut file:
Add-Type -AssemblyName System.Drawing
$ico = [System.Drawing.Icon]::ExtractAssociatedIcon("$env:USERPROFILE\Desktop\test.lnk")
$fs = [System.IO.File]::Create("$env:USERPROFILE\Desktop\icon.ico") $ico.Save($fs) $fs.Close() |
Source: ChatGPT
_______________________________________

|
|
| |
|
| pus acum 3 luni#2 |
|
|
Oh, and another thing that might work - open the exe file with 7zip :)
_______________________________________

|
|
| |
|