Scripts Thread, LNKs, wsh & OS compatibility? in Coding and Web Development; I've got lots of .LNK files and a jscript running on XP using the standard wsh stuff (same as used ...
25th January 2010, 06:37 PM #1
LNKs, wsh & OS compatibility?
I've got lots of .LNK files and a jscript running on XP using the standard wsh stuff (same as used in VBS) can happily read the TargetPath from them i.e. "c:\Program Files\SomeApp\some.exe".
Except when it can't
Early days and I'll have to make another teensy script to test this, but I think it breaks if the shortcut was created on 2008 (and it's over twice the size in bytes of a similar one created on XP).
Does anyone know anything about this?
25th January 2010, 11:25 PM #2
a) Map X: to a share, create a shortcut to something on X: and you get a LNK file that doesn't work with the WShell shortcut functions.
b) On the server SUBST X: to the shared folder, create a shortcut to the same something on X: and you get a smaller LNK file that does work with the WShell shortcut functions.
Both shortcuts work from anywhere when drive X: is mapped to the right place.
26th January 2010, 09:29 AM #3
Have you tried a shortcut that uses a UNC path?
27th January 2010, 12:45 AM #4
No, but I'd like them to be portable so haven't been tempted to try that. Still a bit curious over the second format and why wshell doesn't grok them, and wondering if the 5.8 script host you get with IE8 is any different, but as long as I've got that one method to make LNKs that wshell understands then I'm happy.
Originally Posted by Arthur
By laserblazer in forum Office Software
Last Post: 19th June 2009, 07:32 PM
By techyphil in forum Wireless Networks
Last Post: 12th June 2009, 03:00 PM
By Craggus2000 in forum Wireless Networks
Last Post: 12th June 2009, 12:35 AM
By BKGarry in forum Scripts
Last Post: 14th September 2007, 08:59 PM
By j17sparky in forum Hardware
Last Post: 11th December 2006, 11:45 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)