Articles

change icon & rename file using batch command

April 24, 2012 at 00:29:55
Specs: Windows 7

I want to rename a shortcut file on a desktop & change that file icon to my created icon.
Please can someone help in creating one batch command to run both options. so just running one batch file both should take changes.



See More: change icon & rename file using batch command

Report •


#1
April 24, 2012 at 01:39:22

Please look at this free program. It may not meet your demand of renaming a shortcut but it does much more than that and it creates the shortcut with an icon of your choice and may be very helpful to you. Renaming a shortcut is much easier, anyway.

By the way, I have not used the program myself. Therefore, I do not know if it does what it promises.

EDIT: I tested the program. It works perfectly. It took me about half an hour to figure out how to configure the arguments. You must use double quotes for paths of programs and arguments if they contain blank spaces. Otherwise, use none. The icon file such as Shell32.dll must be copied in current user's Documents directory.

CoolGuy


Report •

#2
April 24, 2012 at 12:31:32

I'm curious about why you wish to use a batch file to do this?

Both renaming and changing the icon can be done manually using Windows.
You can direct the shortcut to the icon of your choice (.ico or .icl).

Always pop back and let us know the outcome - thanks


Report •

#3
April 24, 2012 at 22:56:45

Sorry didn't mention in my previous request.
Guys, I need to do this 1000+ users on my network. So it would be easy that i can run the batch file or put under log on script.
Appreciates your advise..

Report •

Related Solutions

#4
April 25, 2012 at 07:37:28

I'm going to take the liberty of asking the moderator to transfer this post to the Programming forum. I think that it would then be better placed for you to receive detailed information on batch file coding. They may also suggest alternatives.

I believe they transfer these posts (somehow) so that you can still find them in the normal way.

Always pop back and let us know the outcome - thanks


Report •

#5
April 25, 2012 at 15:51:55

The moderators considered that this is a reasonable place for your post
as it is to do with icons.

There might be ready made programs around which can do this (such as
the example given in #1).

As for batch or script I'm not sufficiently on top of those to advise in this
instance, so keep watching and maybe someone else will be able to help you.

Hope you sort it somehow.


Report •


Ask Question