Change icon for CMD.EXE

Posted on 2003-03-06
Medium Priority
Last Modified: 2008-01-16
How do I change the icon for \windows\system32\cmd.exe in Windows XP?
No problem doing it for shortcuts to cmd.exe, but I'd like to also have the
same icon whenever cmd.exe is invoked, e.g. from a .bat or Run.
Question by:xchar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 44

Accepted Solution

CrazyOne earned 200 total points
ID: 8085306
You need to use a tool like this in conjunction with tool for developing the images.

Resource Hacker

Expert Comment

ID: 8085633
Dood- wth, how do you do it. Sooo fast... ehh. I used the resource hacker to copy the white bitmap's in VNC's exe, and paste them over where the black one's were, that way, no visual indiactor :) Little brother never had a chance
LVL 44

Expert Comment

ID: 8085658
Hehehehe pretty funny NEO
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.


Author Comment

ID: 8101126
CrazyOne--  I'm gonna give you my 50 points even though your
answer so far has not really worked...at least not permanently.
   I downloaded Resource Hacker and finally figured out how to use
it to change an icon (ResHacker's Help omits crucial instructions
about what info to enter where).  It was then a snap to change the
icon on CMD.EXE.  And the new icon showed up all over, just as I
    BUT...then Windows XP told me I had altered a file that is
important to its own well-being, and I'd better reinsert the
XP installation CD.  It didn't say what to do after that, and
none of the choices offered seemed appropriate.  So I just
rebooted (with the CD in place)...and the old icon was back!
    Any further suggestions?
LVL 44

Expert Comment

ID: 8101153
Yeah this has to do with the Windows File Protection feature. The following link is for Win2000 but it applies to XP as well.

Description of the Windows 2000 Windows File Protection Feature

You need to update the file in the C:\Windows\system32\dllcache folder first.

Expert Comment

ID: 8102147
Yes, copy to dll cache-and then the C:\WINNT\system32. And failing that, you may want to replace what is in your latest service pack too. Ran into this when changing my boot logo: http://www.littlewhitedog.com/reviews_other_00027.asp
WFP can be truned off, but is not necessary.

excerpt from is-it-true.org

For the next step we'll need a tool that can open .CAB files as
well as create them.  I used WinAce:


"Now you'll need to open the latest service pack .cab file that you
have in your system.  This file is located in X:\winnt\driver cache\i386
and will be called something like SP1.cab or SP2.cab. Extract the
contents of the most current one to a directory.  Now take your
modified ntoskrnl.exe and drop it in that directory, it will
overwrite the existing one.

Re-compress the all the files back into a .CAB and overwrite the
original SP1.cab or SP2.cab (Back up the original first just in case).
Then drop your modified ntoskrnl.exe into X:\winnt\system32\dllcache
and X:\winnt\system32, in that order.  This way Windows file protection
has nowhere to get the original ntoskrnl.exe and leaves well enough
alone. At this point, you can reboot.

You hose your system, it's not my fault...  I've done it about 20 times
on different systems and haven't had a problem yet. Special thanks to
www.littlewhitedog.com and their forums for supplying much of the
information in this report."

Expert Comment

ID: 8102164
Oh- let me be clear- you'll be replacing CMD.exe not Ntoskrnl.exe- that was just an example. I just looked through SP2- no CMD.exe so I am a fewl :P

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question