Hi Everyone:
A new version of the script is in the first post of this thread.
Here's the changes:
Oct 11/05
- fixed bug that read in the enviroment path variable when no valid path was found in window title or clipboard.
- added support for .pif files
- added support for ordering menu items (.lnk files only) and adding seperator lines, thru the comment field of the .lnk files
- added more error checking
dmiranda wrote:
sometimes when attemtpting to switch within to a subfolder's shortctu item, I am redirected to the favorites folder, instead.
I could not reproduce that behavior so maybe it's fixed with this update.
The ordering of the menu items and seperator lines is something that people wanted from savage's original script. This is a partial solution, since it only works with one kind of shortcut file (.lnk). It's completely optional. If you want to use it just add "menu=(integer to indicate menu position)" to the comment field of the shortcut file. It won't work on .url or .pif shortcuts. FileGetShortcut does not read those types.
If you want a seperator line just add "blank" after the integer in the comment.
If a shortcut does not have any of this in it's comment it will be added to the bottom of the menu as normal.
I think this is a good feature to have in the script, but now that it's done I don't think this way of doing it is the best. I think a better way would be a seperate .ini file stored in the same folder as the main script that specifies the order of the menu items would be better. All kinds of shortcuts and even the submenus could be ordered in any way. But I think this would require a GUI to be used when adding or editing the menus in order to keep the .ini file up to date. I started working at it but it seems it may get pretty complicated handling the submenus. So I don't know if I'll ever get that done.