Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > VBScript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 18th, 2005, 07:51 AM
Registered User
 
Join Date: Jan 2005
Location: E Peoria, IL, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change File Icon

I know how to change the Icon of the shortCut. I would like the logic behind how you change the Icon of a file. say if I wanted to make my .vbs file icon a big red "V".



Thanks alot,

Randy Dray
Reply With Quote
  #2 (permalink)  
Old January 23rd, 2005, 11:19 AM
Authorized User
 
Join Date: Jan 2005
Location: Wales, UK, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can't chnage the icon of your own .vbs script with out chnageing evey other .vbs script icon. the reason been be cause that script is assigned a icon from the vbscript Interpreter.

and if you want to know the logic of how the .vbs gets it icon look under the Registry HKEY_CLASSES_ROOT\VBSFile\DefaultIcon
you see it has a value of %SystemRoot%\System32\WScript.exe,2
WScript.exe is the Interpreter and the 2 is the icon index the .vbs file is using.

ok on the other hand if you want to have your own icon for a .vbs file and if you know how to use Visual Basic 6 I suguest haveing a look at some code I made it does what you require.

Well it allows you to assign your own custom icon to a .vbs file. I made it bcause of a scripting lanuage I was makeing here the link

Add Icons to your scripts.
http://www.pscode.com/vb/scripts/Sho...57884&lngWId=1

Other than that I can;t think of any other way to chnage a .vbs icon. hope that helps.


When ya dreams come true.
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can we change the icon of exe file in c++? shiva777 C++ Programming 1 May 13th, 2008 07:00 AM
how to change icon of exe file aashish23 C# 1 September 25th, 2007 08:21 AM
How to add icon file for a web application?? noblez ASP.NET 1.0 and 1.1 Professional 3 April 24th, 2007 02:21 AM
how do i change the site icon on a geocitiies site uprocker2 HTML Code Clinic 2 March 4th, 2005 06:20 AM
How can i change the icon of the IE? vincentc Classic ASP Basics 0 September 7th, 2003 09:23 PM



All times are GMT -4. The time now is 04:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.