Starting Beyond Compare from the Command Line
- by Logan
I have Beyond Compare 3 installed at;
"C:\Program Files\Beyond Compare 3\BCompare.exe"
and Cygwin;
"C:\Cygwin\bin\bash.exe"
What I would like is to be able to use a command such as;
diff <file1> <file2>
into the Cygwin shell and to have the shell fork a process opening the two files in beyond compare.
I looked at the Beyond Compare Support Page but I'm afraid It was too brief for me. I tried copying the text verbatim (apart from path to executable) to no avail;
Instead of using a batch file, create a file named "bc.sh" with the following line:
"$(cygpath 'C:\Progra~1\Beyond~1\bcomp.exe')" `cygpath -w "$6"` `cygpath -w "$7"` /title1="$3" /title2="$5" /readonly
Was I supposed to replace cygpath? I get a 'Command not found' error when I enter the name of the script on the command line.
gavina@whwgavina1 /cygdrive
$ "C:\Documents and Settings\gavina\Desktop\bc.sh"
bash: C:\Documents and Settings\gavina\Desktop\bc.sh: command not found
Does anyone have Beyond Compare working as I have described? Is this even possible in a Windows environment?
Thanks in advance!