This project has moved and is read-only. For the latest updates, please go here.

Start in (optional) Parameter

May 13, 2016 at 10:43 PM

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

Does anyone know how I can perform this task.

May 14, 2016 at 12:42 AM
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