ProcessService

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

FrameworkSupported
WPF
Silverlight 4
Silverlight 5
Windows Phone 7
Windows Phone 8
Windows RT
Test/emulation service

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);