Tuesday, December 11, 2012

Files created by jobs run by Task Scheduler

On Windows Server 2008 R2 Enterprise 64bit, if a Task Scheduler run a task that creates a folder or a file in a current execution path it will be created in:
C:\Windows\SysWOW64\
It means that if you run in a task a following code:
using (var file = new System.IO.StreamWriter("foo.txt"))
{
 file.WriteLine("bar");
}
The file "foo.txt" will be created in a following path
C:\Windows\SysWOW64\foo.txt

No comments: