title: Setting ProcessStartInfo.WorkingDirectory to an UNC Path
body: <p>I have a utility that I have written in VB.net that runs as a scheduled tasks.  It internally calls another executable and it has to access a mapped drive.  Apparently windows has issues with scheduled tasks accessing mapped drives when the user is not logged on, even when the authentication credentials are supplied to the task itself. Ok, fine.</p>
  
  <p>To get around this I just passed my application the UNC path.</p>
  
  <pre><code>process.StartInfo.FileName = 'name of executable'
  process.StartInfo.WorkingDirectory = '\\unc path\'
  process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
  process.StartInfo.Arguments = 'arguments to executable'
  process.Start()
  </code></pre>
  
  <p>This is the same implementation I used with the mapped drive, however using the UNC path, the process is not behaving as if the UNC path is the working directory.</p>
  
  <p>Are there any known issues setting ProcessStartInfo.WorkingDirectory to an UNC path?  If not, what am I doing wrong?</p>