TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Operating Systems > Windows 98/2000/ME/XP/2003/Vista

How to change icon of a "Batch File"??

Windows 98/2000/ME/XP/2003/Vista

 
Reply
 
Thread Tools Display Modes
Old 26-08-2007, 11:52 PM   #1
Regular Member (100+)
Thread Starter
 
nucleusfermi's Avatar
 
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0 nucleusfermi is an unknown quantity at this point
Smile How to change icon of a "Batch File"??

As subject states may I know how to alter the icon of a batch file? And will that way be applicable to similar kinds of files?
__________________
Long Live The Universe
http://nucleusfermi.blogspot.com
nucleusfermi is offline   Reply With Quote
Old 27-08-2007, 10:49 AM   #2
ƒ(ψ)=ΘΊΧφ
 
bakuryu's Avatar
 
Join Date: May 2006
Location: India
Age: 28
Posts: 6,621
Thanks: 19
Thanked 673 Times in 626 Posts
Rep Power: 2150 bakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant future


Windows XP Windows Vista Windows 7


Send a message via Yahoo to bakuryu
Re: How to change icon of a "Batch File"??

You can convert your batch file to exe and then change it icons. Almost all batch to exe converters has this feature to set a custom exe icon also.
__________________
Please don't click here
bakuryu is offline   Reply With Quote
Old 27-08-2007, 11:38 AM   #3
Webmaster
 
Strider's Avatar
 
Join Date: Nov 2005
Location: Interwebs
Posts: 4,994
Thanks: 624
Thanked 726 Times in 610 Posts
Mood: Cynical
Blog Entries: 6
Rep Power: 9006 Strider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly Eminent

Intel Nvidia

Windows XP Windows Server 2003 / Windows Server 2008 Windows 7 Windows 8 Linux


Re: How to change icon of a "Batch File"??

Just like bakuryu suggested download Batch To Exe Converter 1.3.3 from here . It is a small, free and powerful tool.
Strider is offline   Reply With Quote
Old 28-08-2007, 09:34 PM   #4
Regular Member (100+)
Thread Starter
 
nucleusfermi's Avatar
 
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0 nucleusfermi is an unknown quantity at this point
Re: How to change icon of a "Batch File"??

Thanks a lot friends, one more thing if one could suggest me, though I've come across several tutorials to make .exe files from "python" programmes, if you people have some tut in which beginner's considerations are taken care of then please post that here (sorry for staggering with section's propetry, one might initiate pertaining thread in appropriate section too), again thank you both "bakuryu & strider". But it'd be better if I might know how to perform this same task (altering icons) with .dll and similar kinds of files, means if we convert them (other than .bat files) to .exe, would they be still fine in working? Will they work as a library or so on? or some utilities are available for these all tasks too?

Last edited by nucleusfermi; 28-08-2007 at 09:41 PM..
nucleusfermi is offline   Reply With Quote
Old 29-08-2007, 07:41 AM   #5
ƒ(ψ)=ΘΊΧφ
 
bakuryu's Avatar
 
Join Date: May 2006
Location: India
Age: 28
Posts: 6,621
Thanks: 19
Thanked 673 Times in 626 Posts
Rep Power: 2150 bakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant future


Windows XP Windows Vista Windows 7


Send a message via Yahoo to bakuryu
Re: How to change icon of a "Batch File"??

Quote:
though I've come across several tutorials to make .exe files from "python" programmes, if you people have some tut in which beginner's considerations are taken care of then please post that here
This is the easiest tutorial
Tutorial - py2exe.org

Quote:
But it'd be better if I might know how to perform this same task (altering icons) with .dll and similar kinds of files, means if we convert them (other than .bat files) to .exe, would they be still fine in working? Will they work as a library or so on? or some utilities are available for these all tasks too?
No, not all will work if you convert them to exe.

there are many shareware applications that allow you to chnage icons of dll,ocx, etc etc.

Icon Changer - Change icon
Exe Icon Changer - Change icon of exe, dll, folder, driver - Software & Downloads at itLocation.com
bakuryu is offline   Reply With Quote
Old 30-08-2007, 05:11 AM   #6
Regular Member (100+)
Thread Starter
 
nucleusfermi's Avatar
 
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0 nucleusfermi is an unknown quantity at this point
Re: How to change icon of a "Batch File"??

When I changed one batch file using "Batch To Exe Converter 1.3.3" and included several .reg files which were part of the process defined in batch file (which I converted), then not all but a few .reg files appeard in the same directory where that "converted batch file, means now .exe file" was. And the major aspect which bothered me a lot was the .reg files which appeard were without any attributes of "Hidden, Readonly" which I assigned them at the time of inclusion into the .exe(converted batch) file. Why this happened? Is there any solution availble for this? Is this shortcoming of the utility used or I'll've to instruct something more while creating or converting batch file?
nucleusfermi is offline   Reply With Quote
Old 30-08-2007, 05:18 AM   #7
Regular Member (100+)
Thread Starter
 
nucleusfermi's Avatar
 
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0 nucleusfermi is an unknown quantity at this point
Re: How to change icon of a "Batch File"??

Thanks for python tut, it's really the most helping of them all. I asked you about appearing of those .reg files which were included during conversion, should I build a new batch file instucting to remove them and include this new batch file into that converted .exe file? But there is one batch file included within that converted .exe file, then how would I define the order of there execution? I think the first path which I write at the time of conversion for inclusion of other files then they would follow that pattern, but on running I came to know it runs them all together, and files were not deleted.
nucleusfermi is offline   Reply With Quote
Old 30-08-2007, 07:57 AM   #8
ƒ(ψ)=ΘΊΧφ
 
bakuryu's Avatar
 
Join Date: May 2006
Location: India
Age: 28
Posts: 6,621
Thanks: 19
Thanked 673 Times in 626 Posts
Rep Power: 2150 bakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant future


Windows XP Windows Vista Windows 7


Send a message via Yahoo to bakuryu
Re: How to change icon of a "Batch File"??

if you want to hide/protect the reg files, then you need to generate the reg files from inside the batch file.

So you code something like this :

Code:
set regFilePath1=%temp%\reg1.reg
echo Windows Registry Editor Version 5.00 > %regFilePath1%
echo. >> %regFilePath1%
echo [<some registry path>] >> %regFilePath1%
echo [<some values>] >> %regFilePath1%
regedit /s %regFilePath1%
del %regFilePath1%
set regFilePath1=
here the batch file itself generates the reg files and then deletes it after addition to the registry.

Quote:
how would I define the order of there execution
order of execution is always from top to down unless using goto statements inside batch files.
bakuryu is offline   Reply With Quote
Old 30-08-2007, 08:46 AM   #9
Regular Member (100+)
Thread Starter
 
nucleusfermi's Avatar
 
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0 nucleusfermi is an unknown quantity at this point
Re: How to change icon of a "Batch File"??

Amazing you've provided me a jewel, It will propel my task many times, I think if I might know about "goto" statement then as per my perception goes I'll not have to create other batch files in order to sustain the main process, I could easily accomodate that goto statement as per necessity. And the second thing bakuryu, I failed to understand properly the code you wrote. Because when I tried that, though there wasn't any error, but it didn't work. Bakuryu you see this, suppose I am writing a "ram.bat" file, in which I'm to render
a "shyam.reg" file, and the registry path affected is [RegPath] and the dataitem
is "DataItem" and the value is a string ve. like "Ganesh", now please can you write
that code substituting above elements? Whenever you get time
you write okay.

Last edited by nucleusfermi; 30-08-2007 at 09:27 AM..
nucleusfermi is offline   Reply With Quote
Old 30-08-2007, 12:07 PM   #10
ƒ(ψ)=ΘΊΧφ
 
bakuryu's Avatar
 
Join Date: May 2006
Location: India
Age: 28
Posts: 6,621
Thanks: 19
Thanked 673 Times in 626 Posts
Rep Power: 2150 bakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant future


Windows XP Windows Vista Windows 7


Send a message via Yahoo to bakuryu
Re: How to change icon of a "Batch File"??

Code:
set regFilePath1=%temp%\shyam.reg
echo Windows Registry Editor Version 5.00 > %regFilePath1%
echo. >> %regFilePath1%
echo [regPath] >> %regFilePath1%
echo "DataItem"="Ganesh" >> %regFilePath1%
regedit /s %regFilePath1%
del %regFilePath1%
set regFilePath1=
here I must say, if there's a path or some command line parameters then the string can actually be a bit more complicated.

The easiest method is to open the reg file in a text editor like notepad, and copy each line and add a echo command and the redirection to the generated batch file.

to use goto is simply like :

Code:
.... some code....
goto lable_name
.... some code ....

:resume
.. some more codes ....
goto end

:lable_name
... some code....
goto resume

:end
exit
bakuryu is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change to "prompt for file properties" upon Save in Office Bonzai Microsoft Office 0 28-08-2007 11:37 AM
"file" - "open" issue ... office no longer recognizes character st georgef Microsoft Office 8 28-08-2007 09:12 AM
Can't use "[" or "]" characters in file names? Noozer Microsoft Office 16 28-08-2007 08:14 AM
How to merge a "reg" file using a batch file? Don J Windows XP 2 16-08-2007 06:47 AM
How to merge a "reg" file using a batch file? Don J Windows XP 0 16-08-2007 06:46 AM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 12:05 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional