This project has moved. For the latest updates, please go here.

Start in (optional) Parameter

May 13, 2016 at 9:43 PM
Hello,

I need to set the Start in (Optional) setting for Windows 7 Task.

Does anyone know how I can perform this task.

Thanks,
Coordinator
May 13, 2016 at 11:42 PM
When creating an ExecAction, add a value to the WorkingDirectory property.
// In constructor, last param is WorkingDirectory
var action = new ExecAction("cmd.exe", "echo Working...", @"C:\");
// In object, use property
action.WorkingDirectory = @"C:\Windows";
Marked as answer by dahall on 5/13/2016 at 4:42 PM