title: Server 2008 Task Scheduler Mapped Drive Access C#
body: <p>I'm trying do get Server 2008's Task Scheduler to run a C# console app which backs up data to a mapped backup drive somewhere on FastHosts network.</p>
  
  <p>I've written a test app which simply does this</p>
  
  <p>Directory.CreateDirectory("Z:\" + DateTime.Now.Ticks.ToString()); </p>
  
  <p>i.e. just creates a directory on the root of this Z drive.</p>
  
  <p>This works fine when I just run the .exe but when I schedule it in Task Scheduler it doesn't create the directory but says the task has completed with return code 3762507597 - I can't find any info on what this means.</p>
  
  <p>I'm running the task with the highest Admin privelages as far as I can see.</p>