title: "Permission Denied" using cygwin in Windows
body: <p><em><strong>Background:</em></strong>
  I am trying to write a [.bat] file so I can double click it and a bash script will get invoked.  The bash script will start up a few windows GUI apps to monitor GPU/CPU temperatures.  I just did a fresh install of cygwin v1.7.7-1 (downloaded today) and windows 7.</p>
  
  <p><em><strong>Code:</em></strong>
  monitor-temps.bat:</p>
  
  <pre><code>C:\cygwin\bin\bash.exe ~/bin/monitor-temps.bash
  pause
  </code></pre>
  
  <p><em><strong>Code:</em></strong>
  monitor-temps.bash:</p>
  
  <pre><code>#!/usr/bin/bash
  "/cygdrive/c/Users/michael/Desktop/apps_and_drivers/GPU-Z.0.4.8.exe" &amp;
  </code></pre>
  
  <p><em><strong>Output:</em></strong>
  After I double click the [.bat] file, I get a:</p>
  
  <pre><code>C:\Users\michael\Desktop&gt;C:\cygwin\bin\bash.exe ~/bin/monitor-temps.bash
  
  C:\Users\michael\Desktop&gt;pause
  Press any key to continue . . . /home/michael/bin/monitor-temps.bash: line 2: /cygdrive/c/Users/michael/Desktop/apps_and_drivers/GPU-Z.0.4.8.exe: Permission denied
  </code></pre>
  
  <p>I still get the same permissions error when I cd to the directory and manually execute the application.</p>
  
  <p><em><strong>Permissions:</em></strong>
  From my experience with permission problems in Linux, everything looks good because I am the user I think I am, and the file has the expected permissions:</p>
  
  <pre><code>$ whoami
  michael
  
  $ ls -l GPU*
  -rwx------+ 1 michael        None 890720 2010-12-01 19:23 GPU-Z.0.4.8.exe
  </code></pre>
  
  <p><em><strong>Question:</em></strong>
  Does anyone know how to fix this?  Am I missing something?</p>