I have a scheduled task that calls a bat file, problem is it does this in c:\windows\system32 instead of the path it exists in (c:\bak), is there a setting that I can change to set it to run in the correct location?

link|improve this question

77% accept rate
Just a thought, but perhaps you should simply add a command at the start of the script to set the correct working directory and other environment settings? Scripts that don't work every time can drive someone else trying to fix your script insane if they don't know what the environment should be like. – Zoredache Oct 8 '10 at 6:19
feedback

1 Answer

up vote 1 down vote accepted

Yes - in the "Edit Action" UI, fill out the Start In (Optional) field.

(If you aren't already, use the Task Scheduler to create your scheduled task.)

link|improve this answer
Ah found it, thanks very much Mark. – Beuy Oct 8 '10 at 4:11
@Beuy - my pleasure, I've got several tasks set up and have had to deal with the differences between this incarnation of task scheduling and previous ones. :) – Mark Allen Oct 9 '10 at 1:26
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.