title: C# exe not working on target platform x86
body: <p>so, I'm trying to log accesses to my shared files on the network (I'm modifying <a href="http://www.codeproject.com/Articles/62357/Monitoring-Access-to-Your-Shared-Files-on-Network" rel="nofollow">Abdollah Zawari's ShareMoniter</a>), i do this by starting openfiles.exe like so:</p>
  
  <pre><code>        var process = new Process();
          process.StartInfo.FileName = "openfiles.exe";
          process.StartInfo.Arguments = "/query /FO CSV /v";
          process.StartInfo.UseShellExecute = false;
          process.StartInfo.CreateNoWindow = true;
          process.StartInfo.RedirectStandardOutput = true;
          try
          {
              process.Start();
              if ((process.StandardOutput != null))
              {
                  var result = process.StandardOutput.ReadToEnd().Trim().Replace("\"", "");
                  var lines = result.Split('\n');...
  </code></pre>
  
  <p>I want to log the results in an Access database, but jet.Oledb.4.0 or ace.oledb.12.0 only work when I set the project's target platform to x86.</p>
  
  <p>problem is, openfiles.exe doesn't return anything when i run the project for x86 (openfiles.exe starts and ends with no apparent error, but an empty string "" is returned)</p>
  
  <p>I'm very much a newbie, especially in these fields, so any advice on the matter would be greatly appreciated</p>
  
  <p>thanks in advence</p>