title: Starting Beyond Compare from the Command Line
body: <p>I have Beyond Compare 3 installed at; </p>
  
  <pre><code>"C:\Program Files\Beyond Compare 3\BCompare.exe"
  </code></pre>
  
  <p>and Cygwin;</p>
  
  <pre><code>"C:\Cygwin\bin\bash.exe"
  </code></pre>
  
  <p>What I would like is to be able to use a command such as;</p>
  
  <pre><code>diff &lt;file1&gt; &lt;file2&gt;
  </code></pre>
  
  <p>into the Cygwin shell and to have the shell fork a process opening the two files in beyond compare.</p>
  
  <p>I looked at the <a href="http://www.scootersoftware.com/support.php?c=kb_vcs.php" rel="nofollow noreferrer">Beyond Compare Support Page</a> but I'm afraid It was too brief for me. I tried copying the text verbatim (apart from path to executable) to no avail;</p>
  
  <pre><code>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 
  </code></pre>
  
  <p>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.</p>
  
  <pre><code>gavina@whwgavina1 /cygdrive
  $ "C:\Documents and Settings\gavina\Desktop\bc.sh"
  bash: C:\Documents and Settings\gavina\Desktop\bc.sh: command not found
  </code></pre>
  
  <p>Does anyone have Beyond Compare working as I have described? Is this even possible in a Windows environment?</p>
  
  <p>Thanks in advance!</p>