View Full Version : a .lnk plugin ?
willum
18-Apr-2006, 01:42 PM
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
21-Apr-2006, 12:08 AM
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?
Chris
25-Apr-2006, 05:15 PM
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
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.
willum
25-Apr-2006, 11:09 PM
Hi Chris..
Thanks.. it works, you have made me happy !
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.