+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    116

    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?

  2. #2

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    116
    By-and- by:

    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.

  3. #3


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,805
    Thank Post
    262
    Thanked 2,967 Times in 2,182 Posts
    Rep Power
    846
    Have you tried a shortcut that uses a UNC path?

  4. #4

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    116
    Quote Originally Posted by Arthur View Post
    Have you tried a shortcut that uses a UNC path?
    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.



SHARE:
+ Post New Thread

Similar Threads

  1. [MS Office - 2007] SIMS compatibility
    By laserblazer in forum Office Software
    Replies: 5
    Last Post: 19th June 2009, 07:32 PM
  2. Cat6 Compatibility
    By techyphil in forum Wireless Networks
    Replies: 4
    Last Post: 12th June 2009, 03:00 PM
  3. Switch compatibility
    By Craggus2000 in forum Wireless Networks
    Replies: 2
    Last Post: 12th June 2009, 12:35 AM
  4. Replies: 10
    Last Post: 14th September 2007, 08:59 PM
  5. Asus & Corsair compatibility issues??
    By j17sparky in forum Hardware
    Replies: 3
    Last Post: 11th December 2006, 11:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •