I am trying to start the Server 2008 Task Scheduler to run a C # console application that backs up data to a mapped backup drive somewhere on the FastHosts network.
I wrote a test application that just does it
Directory.CreateDirectory ("Z: \" + DateTime.Now.Ticks.ToString ());
i.e. just creates a directory at the root of this Z drive.
This works fine when I just run .exe, but when I schedule it in the task scheduler, it does not create a directory, but says that the task is completed with return code 3762507597. - I can not find any information about what this means.
I am performing the task with the highest administrator privileges as far as I can see.
source share