PC Review


Reply
Thread Tools Rate Thread

How to change the icon of a file association in command line

 
 
Heelen Diyond
Guest
Posts: n/a
 
      24th Sep 2004
I know the command to change the file association is "assoc",but how can i
change the icon?


 
Reply With Quote
 
 
 
 
Mark V
Guest
Posts: n/a
 
      24th Sep 2004
In microsoft.public.win2000.registry Heelen Diyond wrote:

> I know the command to change the file association is "assoc",but
> how can i change the icon?


Perhaps,
D:\temp3>assoc .log
..log=txtfile

reg.exe add "HKCR\txtfile\defaulticon" /ve /d "c:\somewhere\Mynpad.ico" /f

Icon resource may be an icon file or and executable (.exe, .dll)
with a index number as in
C:\winnt\notepad.exe,0

REG.EXE is either installed or can be installed with the "Support
Tools". (for W2K/XP/2K3)


There may be other CLI methods to do this.

 
Reply With Quote
 
Heelen Diyond
Guest
Posts: n/a
 
      24th Sep 2004
Thanks a million,though I had known this method
But,are there any other better ideas?


"Mark V" <(E-Mail Removed)> 写入消息新闻
:Xns956E452D0F255z9zzaQ2btw@207.46.248.16...
> In microsoft.public.win2000.registry Heelen Diyond wrote:
>
> > I know the command to change the file association is "assoc",but
> > how can i change the icon?

>
> Perhaps,
> D:\temp3>assoc .log
> .log=txtfile
>
> reg.exe add "HKCR\txtfile\defaulticon" /ve /d "c:\somewhere\Mynpad.ico" /f
>
> Icon resource may be an icon file or and executable (.exe, .dll)
> with a index number as in
> C:\winnt\notepad.exe,0
>
> REG.EXE is either installed or can be installed with the "Support
> Tools". (for W2K/XP/2K3)
>
>
> There may be other CLI methods to do this.
>



 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      24th Sep 2004
In microsoft.public.win2000.registry Heelen Diyond wrote:

> Thanks a million,though I had known this method
> But,are there any other better ideas?


Great. I hope to read some of them!

Have you also ruled out generating a REG file and importing from the
CLI then?

What (generally) are you looking for? VBS script? Command-line tool
such as the hypothetical:
SetIco.exe ext icopath

Cheers


>
>
> "Mark V" <(E-Mail Removed)> 写入消息新闻
>:Xns956E452D0F255z9zzaQ2btw@207.46.248.16...
>> In microsoft.public.win2000.registry Heelen Diyond wrote:
>>
>> > I know the command to change the file association is
>> > "assoc",but how can i change the icon?

>>
>> Perhaps,
>> D:\temp3>assoc .log
>> .log=txtfile
>>
>> reg.exe add "HKCR\txtfile\defaulticon" /ve /d
>> "c:\somewhere\Mynpad.ico" /f
>>
>> Icon resource may be an icon file or and executable (.exe, .dll)
>> with a index number as in
>> C:\winnt\notepad.exe,0
>>
>> REG.EXE is either installed or can be installed with the "Support
>> Tools". (for W2K/XP/2K3)
>>
>>
>> There may be other CLI methods to do this.
>>

>
>
>


 
Reply With Quote
 
Heelen Diyond
Guest
Posts: n/a
 
      25th Sep 2004
Hi,Mark.Yes,i'm looking for a command-line tool.It seems that there's no
such tool in windows.


--
Regards,
Heelen Diyond...
If you can't understand my poor English clearly,please reply,and I'll do my
best to explain and help u



"Mark V" <(E-Mail Removed)> 写入消息新闻
:Xns956E56B6AF6BFz9zzaQ2btw@207.46.248.16...
> In microsoft.public.win2000.registry Heelen Diyond wrote:
>
> > Thanks a million,though I had known this method
> > But,are there any other better ideas?

>
> Great. I hope to read some of them!
>
> Have you also ruled out generating a REG file and importing from the
> CLI then?
>
> What (generally) are you looking for? VBS script? Command-line tool
> such as the hypothetical:
> SetIco.exe ext icopath
>
> Cheers
>
>
> >
> >
> > "Mark V" <(E-Mail Removed)> д ?
> >:Xns956E452D0F255z9zzaQ2btw@207.46.248.16...
> >> In microsoft.public.win2000.registry Heelen Diyond wrote:
> >>
> >> > I know the command to change the file association is
> >> > "assoc",but how can i change the icon?
> >>
> >> Perhaps,
> >> D:\temp3>assoc .log
> >> .log=txtfile
> >>
> >> reg.exe add "HKCR\txtfile\defaulticon" /ve /d
> >> "c:\somewhere\Mynpad.ico" /f
> >>
> >> Icon resource may be an icon file or and executable (.exe, .dll)
> >> with a index number as in
> >> C:\winnt\notepad.exe,0
> >>
> >> REG.EXE is either installed or can be installed with the "Support
> >> Tools". (for W2K/XP/2K3)
> >>
> >>
> >> There may be other CLI methods to do this.
> >>

> >
> >
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to change an icon for a shortcut via vbs/command line booker@mgt Windows XP Customization 4 28th Jul 2008 05:18 AM
ClickOnce question : how to specify an Icon file from Command Line arguments of Mage.exe. Isabelle Microsoft Dot NET Framework 0 10th Jul 2006 06:42 PM
How to change a folder's icon via command line? Nocturnal Windows XP Customization 1 4th Jun 2006 04:09 AM
changed file association but icon for file doesn't change =?Utf-8?B?Sm9lQ29vbA==?= Windows XP General 1 4th Apr 2006 10:14 AM
How to change the icon of a file association in command line Heelen Diyond Microsoft Windows 2000 Registry Archive 4 25th Sep 2004 09:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:18 AM.