Results 1 to 7 of 7
  1. #1
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Program to display Shortcut information

    I am fairly familiar with the (now discontinued) Resource Kit SHORTCUT utility to produce data from Shortcut/.LNK files, but I wonder whether anyone has come across something newer which will support usage like<pre>NewShortCutInfoProvider "<pcname>c$Documents and Settings<username>DesktopWonderProgram.lnk"</pre>

    Example output (for Norton Internet Security 2004):<pre>LinkName: Norton Internet Security.lnk
    Arguments: /nosysworks /dat:C:Program FilesNorton Internet SecurityNISPLUG.NSI
    Target: C:Program FilesCommon FilesSymantec SharedNMAIN.EXE
    Working Directory: C:Program FilesNorton Internet Security
    Icon File: C:WINDOWSInstaller{A93C9E60-29B6-49da-BA21-F70AC6AADE20}NISIcon.ico
    Icon Index: 0</pre>

    There are a number of other limitations with the Resource Kit SHORTCUT program which I won't bore you with...

    Thanks!

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    20,381
    Thanks
    1
    Thanked 595 Times in 532 Posts

    Re: Program to display Shortcut information

    John,

    Have a look at ShortcutsMan - Shortcuts Manager for Windows. It probably does not do exactly what you want but may be close.

    Joe

  4. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    5,873
    Thanks
    0
    Thanked 79 Times in 75 Posts

    Re: Program to display Shortcut information

    You can get most of the shortcut information using VBScript. I've attached a quick demo (you will need to rename it with .vbs extension) - if you drag a shortcut onto it in explorer, it will pop up a messagebox listing various properties. You can customise it as necessary.
    HTH

    PS You can also of course call it from a command line and I have tested it with UNC shares and it seems to work fine.
    Attached Files Attached Files
    Regards,
    Rory
    Microsoft MVP - Excel.

  5. #4
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Program to display Shortcut information

    Nice one Rory, I have played (and tested <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>) that script and works great on WinXP platform also <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>
    Jerry

  6. #5
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Program to display Shortcut information

    Thanks, Rory - the "drop shortcut onto VBS file" works fine (I put a few more tabs in to get it to line up!). What do you have to do to run from the command line? Something like CSCRIPT vbsfilename shortcutfilepath ?

    Joe - that program produces a line for every link on my PC, all 257 of them! I note that it's that Nir Soft man again! Well spotted.

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #6
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    5,873
    Thanks
    0
    Thanked 79 Times in 75 Posts

    Re: Program to display Shortcut information

    Either that or just <code>vbsfilename shortcutname</code>.
    Regards,
    Rory
    Microsoft MVP - Excel.

  8. #7
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    20,381
    Thanks
    1
    Thanked 595 Times in 532 Posts

    Re: Program to display Shortcut information

    John,

    I've never tried to correspond with him. Maybe you can be the test case to see how he repsonds to suggestions for improvements to his software.

    Joe

Posting Permissions

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