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.
I've written a test app which simply does this
Directory.CreateDirectory("Z:\" + DateTime.Now.Ticks.ToString());
i.e. just creates a directory on the root of this Z drive.
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.
I'm running the task with the highest Admin privelages as far as I can see.