I've written a script in c# which I have to execute on a daily basis. It's something like an updater for my data base. So it pulls some data from the Active Directory using CSVDE, and saves that info into csv files in the same directory, then parses those files and updates my database if necessary. Obviously I don't want to run it manually every day, so instead I added a scheduled task. My problem is that it doesn't create the expected files, at least in the same path. If I run the script manually it works like a charm. Also after a scheduled run I tried to find those files by filename on the machine to check whether those were created in some other place, but no luck. Do you have any idea why it not works the same way?
Asked
Active
Viewed 234 times
0
-
probably ServerFault.com - but did you set proper working directory in scheduled task properties? – Kuba Wyrostek Mar 19 '14 at 10:43
-
What account is the Task Scheduler running it under? Did you check the permissions etc. ? – shree.pat18 Mar 19 '14 at 10:44
-
It's running using a dedicated local admin account. Permissions are OK. Working directory has been set as well. – fishmong3r Mar 19 '14 at 10:57