a .lnk plugin ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • willum
    Journeyman
    • Apr 2006
    • 14

    a .lnk plugin ?

    Hi, is it posible for someone to create a .lnk plugin ?

    I would like to compare shortcuts in an easy way..
    there's a shortcut.exe available at http://www.optimumx.com/download/
    To query a shortcut to a txt file (shortcut f:filename.lnk a:q > txt.txt) works. I wonder if someone can combine this in BC.
  • willum
    Journeyman
    • Apr 2006
    • 14

    #2
    Re: a .lnk plugin ?

    Ok, this is how far I got:
    Created a subfolder
    C:\Program Files\Beyond Compare 2\ShortcutCompare

    In there the Shortcut.exe (see above) and a ShortcutCompare.bat file with the following content:

    @ECHO OFF
    call "C:\Program Files\Beyond Compare 2\ShortcutCompare\shortcut" /F:%1 /A:Q >> %1.tmp
    call "C:\Program Files\Beyond Compare 2\ShortcutCompare\shortcut" /F:%2 /A:Q >> %2.tmp
    call "C:\Program Files\Beyond Compare 2\BC2.exe" %1.tmp %2.tmp
    DEL %1.tmp
    DEL %2.tmp

    If you now ‘drop’ two shortcuts on the ShortcutCompare.bat file it will compare the files.

    But…. I would like this work within BC. Can someone finish this?

    Comment

    • Chris
      Team Scooter
      • Oct 2007
      • 5538

      #3
      Re: a .lnk plugin ?

      Here's how to setup the external conversion rule:

      Copy shortcut.exe into: c:\program files\beyond compare 2\shortcutcompare\

      Create a batch file named shortcut.bat in the same folder.
      Contents of shortcut.bat
      Code:
      ShortcutCompare\Shortcut.exe /F:%1 /A:Q > %2
      In Beyond Compare, select Tools|Options.
      Go to the Rules section.
      Click New.
      Select FileViewer as the Handler and click OK.
      In the General tab name the rule "Shortcut".
      Enter the extension: *.lnk
      Go to the Conversion tab.
      Select "External Program" as the Conversion type.
      For Run when loading: ShortcutCompare\shortcut.bat %s %t

      Click OK to close the dialog.

      Now when you double click a pair of shortcuts in the Folder Viewer, it should display their information in the File Viewer.
      Chris K Scooter Software

      Comment

      • willum
        Journeyman
        • Apr 2006
        • 14

        #4
        Re: a .lnk plugin ?

        Hi Chris..
        Thanks.. it works, you have made me happy !

        Comment

        Working...