title: getting osk.exe to run from C#
body: <p>I have VS2010, C# program that is setup to build as x86.  I have two PCs where they are running.  Both are Win 7 Prof, SP1, 32 bits. Both VS2010s are running at Admin level.  Within my project I try to execute the line:</p>
  
  <pre><code>Process.Start("c:\\Windows\\System32\\osk.exe");  //win 7 on-screen keyboard
  </code></pre>
  
  <p>From debug mode-run, on one system it runs fine, on the other, an exception is thrown:
      <strong>The specified executable is not a valid application for this OS platform.</strong></p>
  
  <p>I have the user control setting in Win 7--User Accounts to "never notify" as suggested from other sites, that did not work.</p>
  
  <p>I have tried:  (same result, fail)</p>
  
  <pre><code>Process process = new Process();
  process.StartInfo.UseShellExecute = false;  //have tried it true also
  process.StartInfo.WorkingDirectory = "c:\\";
  process.StartInfo.FileName = "c:\\WINDOWS\\system32\\osk.exe";
  process.StartInfo.Verb = "runas";
  process.Start();
  </code></pre>
  
  <p>Any ideas what needs to be changed (or do)?</p>