![]() |
|
|
|||||||
|
|
#1 |
|
Regular Member (100+)
Thread Starter
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
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?
Advertisement |
|
|
|
|
|
#2 |
|
ƒ(ψ)=ΘΊΧφ
|
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 |
|
|
|
|
|
#3 |
|
Webmaster
![]() Join Date: Nov 2005
Location: Interwebs
Posts: 4,955
Thanks: 613
Thanked 721 Times in 605 Posts
Mood:
Blog Entries: 6
Rep Power: 8991
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
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.
|
|
|
|
|
|
#4 |
|
Regular Member (100+)
Thread Starter
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
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.. |
|
|
|
|
|
#5 | ||
|
ƒ(ψ)=ΘΊΧφ
|
Re: How to change icon of a "Batch File"??
Quote:
![]() Tutorial - py2exe.org Quote:
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 |
||
|
|
|
|
|
#6 |
|
Regular Member (100+)
Thread Starter
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
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?
|
|
|
|
|
|
#7 |
|
Regular Member (100+)
Thread Starter
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#8 | |
|
ƒ(ψ)=ΘΊΧφ
|
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= Quote:
|
|
|
|
|
|
|
#9 |
|
Regular Member (100+)
Thread Starter
Join Date: Aug 2007
Posts: 124
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
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.. |
|
|
|
|
|
#10 |
|
ƒ(ψ)=ΘΊΧφ
|
Re: How to change icon of a "Batch File"??
Advertisement 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= 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 Advertisement |
|
|
|
![]() |
| 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? |