? Define icon file for wsh component 
Author Message
 ? Define icon file for wsh component

Is there a way to associate a different icon than the default scripting icon to a
particular wsh file?  I am also not interested in creating a shortcut as I would
prefer to do it programatically in the script.
Thanks
Geoff Currie


Tue, 28 Oct 2003 15:15:28 GMT  
 ? Define icon file for wsh component
Manually you would open Explorer and navigate the menu  to View/Folder
Options/File Types, then pick the file type to be modified (*.vbs, *.js,
*.wsf, etc.), then select Edit and Change Icon.  

It would be done programmatically in the
HKEY_CLASSES_ROOT\VBSFile\DefaultIcon key (and other similar keys as
appropriate).  See WSH documentation for RegRead/RegWrite methods to
modify the key's value.  

Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/

Quote:

> Is there a way to associate a different icon than the default
> scripting icon to a particular wsh file?  I am also not interested
> in creating a shortcut as I would prefer to do it programatically in
> the script.
> Thanks
> Geoff Currie



Tue, 28 Oct 2003 20:58:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How can i change icons of HHCtrl component?

2. Constants defined in a COMponent

3. can I show file use file icon?

4. variable scope and using wsh icon tray ocx

5. Creating a shell icon on the desktop using WSH

6. WSH and Desktop Icons

7. with wsh can we move icon ?

8. Ann: wsh System Tray Icon Object (ocx)...

9. how can i define a new defined window...?

10. Dim oappWD as Word.Application: User defined type not defined

11. Defining a font vs. defining a procedure

12. Is #DEFINE Available in WSH?

 

 
Powered by phpBB® Forum Software