title: Calling a batch file from a windows service
body: <p>I have a service that needs to call a batch when a new file is copied to a directory. I tried using <code>CreateProcess</code>, <code>ShellExecute</code>, <code>ShellExecuteEx</code> and even <code>system</code>. I tried calling the batch directly, then calling <code>cmd.exe</code> and passing <code>/c batchfile</code> as parameter... Nothing.
  I set the service to run as administrator. I tried with other users. Nothing.</p>
  
  <p>This is a Windows 2008 server.</p>
  
  <p>Any ideas?
  Thank you.</p>