title: How to check the existence of a Windows executable?
body: <pre><code>my $exe = "'C:/Program Files/Common Files/executable.exe'";
  
  if(! -X $exe) {
      print "exe file not found";
      exit 3;
  }
  
  my $cmd = $exe.' status';
  @lines = qx ( $cmd );
  </code></pre>
  
  <p>My problem is that I can execute this command just fine, but I cannot for the life of me figure out how to check for the existence of the exe-file. Any hints? I have tried different sorts of quotation marks, -f, -X, -e ... nothing works! Any help is much appreciated.</p>