Server 2008 Task Scheduler Mapped Drive Access C#
- by user219313
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 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.