|
|||
|
Hi,
Am I doing something wrong here? I've altered the file names, but you should get the general idea.... Code:
// find the location of the Favourites folder, create new TEST subfolder
var testFavouritesFolder = new Folder(Shell.getSpecialFolder("favorites") + "\\TEST");
// find the location of the Favourites icon
var iconFile = "Somewhere\\Whatever.ico,0";
// now create shortcut
shortcut = new URLShortcut(testFavouritesFolder.path + "\\TEST.url");
shortcut.url = "http://www.test.com/TEST";
shortcut.iconLocation = iconFile;
shortcut.description = "TEST";
shortcut.save();
I've traced the paths to the favourites folder and the icon in my actual code, both are correct. I even tried creating an exe in the folder where iconFile lives which had the .ico embedded in it, then using: Code:
var iconFile = "Somewhere\\Whatever.exe,0"; ??? Cheers, G. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|