
? 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