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.
|
Lista Forumurilor Pe Tematici
|
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login
POZE MRRRR'S FORUM (VIEW ONLY)
Nu sunteti logat.
|
Nou pe simpatie: Kitana
 | Femeie 25 ani Bucuresti cauta Barbat 25 - 48 ani |
|
Mrrrr
AdMiN
 Inregistrat: acum 19 ani
Postari: 2364
|
|
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 2 saptamani |
|
Mrrrr
AdMiN
 Inregistrat: acum 19 ani
Postari: 2364
|
|
Oh, and another thing that might work - open the exe file with 7zip :)
_______________________________________

|
|
| pus acum 2 saptamani |
|