Jump to content

Recommended Posts

Posted (edited)

Is there a way to add Change Icon item to the default folder context menu? I know how to add other items like open with notepad i.d. but change icon .... is that possible?

If anyone knows how to do that, please share it.

Thanks in advance

Edited by macdavids
  • 2 weeks later...

Posted

You can't. It's integrated into rightclick>properties>customize It's not as a standalone exe. And there isn't any switches to call it. But you could make an Autoit script and put it into %systemroot% that simulates rightclick>properties>customize on folders.

  • 1 month later...
Posted

Hi, Could you tell me more how to do that (Autoit script and put it into %systemroot% that simulates rightclick>properties>customize on folders.) please? I'm not really familiar in tweaks.

Thanks alot.

Best ragards,

David

  • 1 month later...
Posted

Yes there's a way and it would be quite easy. You would need Shortcut.exe from http://www.optimumx.com/download/. You would then need to create a script to use it, here's a very cheap and nasty vb script:

Option Explicit
On Error Resume Next
Dim objDialog,WshShell
Set WshShell=WScript.CreateObject("WScript.Shell")
Set objDialog=CreateObject("UserAccounts.CommonDialog")
objDialog.Filter="Icon Files|*.ico; *.dll; *.exe|All Files|*.*"
objDialog.FilterIndex=1
'objDialog.InitialDir="C:\"
w=objDialog.ShowOpen
If w<>0 Then
WshShell.Run("cmd /c shortcut /F:"""&Wscript.Arguments(0)&""" /A:E /I:"""&objDialog.FileName&""""),0,True
Wscript.Quit(1)
Else
Wscript.Quit(0)
End If

It's untestted, so don't flame me if it doesn't work. If you saved it as ICONEDIT.VBS you would call it like: WSCRIPT ICONEDIT.VBS FILENAME.EXT. It's very primitive and limited, it does not allow selecting the icon-index (for instance, the 3rd or 4th icon in an EXE or DLL file). You would need to call the specific dialogue MS uses for their icons

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...