title: Specifying the running directory for Scheduled Tasks using schtasks.exe
body: <p>I have an application which gets called by a scheduled task. It moved from Windows Server 2003 to Windows Server 2008. On 2003, the app ran in the directory where the executable was located. On 2008 <code>Environment.CurrentDirectory</code> (C#) reports that it's running in C:\Windows\System32.  How do I set the running directory? I'm using schtasks.exe for command-line deployment.</p>
  
  <p><strong>UPD</strong>: Through the interface, it seems to be the "Start in (optional)" field on the action edit screen.</p>
  
  <p><strong>UPD</strong>: Looks like using the XML file may help, but I'm looking to do without it.</p>