The ProcessService allows a developer to run processes from inside a view model.

Available for
WPF / Silverlight / WP7 / WP7 Mango

Test/Emulation service available: yes

Starting a process with arguments
To start a process with arguments, use the following code:

var processService = GetService<IProcessService>();
processService.Start("notepad.exe", @"C:\mytextfile.txt");

Starting a process with arguments and completed callback
To start a process with arguments and receive a callback on completion, use the following code:

var processService = GetService<IProcessService>();
processService.Start("notepad.exe", @"C:\mytextfile.txt", OnProcessCompleted);

Last edited Jul 11, 2011 at 12:14 PM by GeertvanHorrik, version 1

Comments

No comments yet.