
Changing the icon of the *.url files
Yes...
P.S. - What's with the HTML posts and {*filter*}sy font size <g>?
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--
Quote:
> How can I add this using FSO? Must I edit use OpenTextFile and edit the
> file adding the icon string or how?
> In Windows Explorer, set the icon for a .url file manually. Then open the
> url file in a text editor - it's just an INI style file format.
> The URLShortcut object doesn't support an IconLocation property. You'll
> need to add it using FSO...
> --
> Michael Harris
> Microsoft.MVP.Scripting
> Seattle WA US
> --
> > How can I change/set the icon of an internet URL? I am able to create
> any
> > URL using either of the sets of code below, BUT I can't change the icon
> > for some reason.
> > Trial1:
> > var oUrlLink = ShellObj.CreateShortcut( quickLaunch[i] + "iSite.url" );
> > oUrlLink.TargetPath = " http://www.*-*-*.com/ ";
> > oUrlLink.Save();
> > Trial2:
> > var ts = fso.OpenTextFile( quickLaunch[i] + "iSite.url", ForWriting,
> > false);
> > ts.WriteLine("[InternetShortcut]");
> > ts.WriteLine("URL= http://www.*-*-*.com/ ");