I'm generating an HTML report by C# to print pairs of files in a table which has 3 columns: the first two columns used for the filenames and the 3rd column is a hyperlink Compare - I want this link to run WinMerge to compare to two files and I currently don't know how to do it.
Try this
<html> <head> <script type="text/javascript"> function runProgram() { var shell = new ActiveXObject("WScript.Shell"); var appWinMerge = "\"C:\\Program Files\\WinMerge\\WinMergeU.exe\" /e /s /u /wl /wr /maximize"; var fileLeft = "\"D:\\Path\\to\\your\\file\""; var fileRight= "\"D:\\Path\\to\\your\\file2\""; shell.Run(appWinMerge + " " + fileLeft + " " + fileRight); } </script> </head> <body> <a href="javascript:runProgram()">Run program</a> </body> </html>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With