How can I change the icon of a .bat file in Windows 7?

Rohan June 12, 2011
Pinterest Stumbleupon Whatsapp

I have just generated a .bat file. Can I change its icon image to that of any other application like Mozilla? My operating system is Windows 7.

  1. Juan Marco
    October 31, 2011 at 1:05 pm

    Make an another copy (Send to > create shortcut) of this file then do this (Properties > Change icon) and then you are done!

  2. Anonymous
    July 17, 2011 at 12:14 pm

    Hi Rohan, There is a tiny application called "FileTypesMan" (File Types Manager), you can manage file types using this tool. It's a freeware and of course anyone can use it. This application is very small but very powerful. You can download it from this link: http://www.mediafire.com/?rt34v544v14fb0n

    Once it's downloaded, Simply run the "FileTypesMan" (Run as Admin). The program will open up and it looks like a windows explorer or something similar. There are two sections on the main page, the top section contains all the Windows file types and the bottom section shows the details of a selected file type. In the top section, scroll down and locate ".bat", right-click it and select "Edit Selected File Type" (or simple press F2 on the keyboard). Edit File Type window will open up, now locate the browse button (----) on the left hand side of the "Default Icon" which is beside the "%SystemRoot%System32imageres.dll,-68", this will direct you to the Windows Icon Directory (change icon dialog box) from where you can choose your icon. If you have customized or specific icon you like to assign, click the "Browser" button in the "change icon" dialog box and locate it, select and then "Open" and "Ok". That's all.

    Warning: Never Mess Around with other settings if you are not sure, any changes made in this program is directly effecting the Windows System Registry.

    A couple of illustrated screenshots below (attached)

    Hope this helps.

    • Hangker
      June 2, 2012 at 6:20 am

      TQ...its working

  3. pceasies
    July 12, 2011 at 4:12 pm

    The easiest way is to move batch file to a different location and make a shortcut to it and change the shortcut's icon.

  4. Naderi2229
    July 5, 2011 at 10:55 am

    what do me changed shortcut extension with .LNk?

    • Tina
      July 5, 2011 at 6:29 pm

      Naderi,

      check out Aibek's answer to this question: http://www.makeuseof.com/answers/change-fix-file-associations-windows-7/

  5. Tim B.
    June 18, 2011 at 10:36 pm

    You can download a free program called “Bat To Exe Converter” As you might guess, it converts the batch file into an exe. It allows you to choose an icon for your exe before compiling.It’s an awesome little tool.

  6. Tim B.
    June 14, 2011 at 2:25 pm

    You can download a free program called "Bat To Exe Converter" As you might guess, it converts the batch file into an exe. It allows you to choose an icon for your exe before compiling.

    It's an awesome little tool.

  7. Anonymous
    June 12, 2011 at 6:14 pm

    MS-DOS batch files: as it is simply a text file with a special extension, a .bat file doesn't store an icon of its own.

    You can, however, create a shortcut in the .lnk format that stores an icon
    http://www.kixtart.org/forums/ubbthreads.php?ubb=showthreaded&Number=81949&site_id=1

    The icon displayed by the Shell (Explorer) for batch files is determined by the registry key
    HKCRbatfileDefaultIcon
    which, on my computer is
    %SystemRoot%System32imageres.dll,-68

    You can set this to any icon you like.This will however change the icons of all batch files (unless they have the extension .cmd).

    or you could use bat to exe converter from here
    http://www.f2ko.de/programs.php?lang=en&pid=b2e
    and set the icon file in this program. this will convert your batch file to an executable

    or
    .bat >> .com >> .exe
    bat to com use powerbatch
    http://www.labo-microsoft.org/logiciels/11839/

    • Mike
      June 12, 2011 at 6:27 pm

      I believe the reasons why you can't assign icons to .bat files (or similar) is to prevent people from hiding suspicious code and tricking others into running such a file.
      Since the default folder view of Windows hides known extensions the Icon is the only way to distinguish between e.g. a batch file with some malicious code and a programs executable.

Ads by Google