mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
refactored TryStart
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1273 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -673,6 +673,19 @@ namespace ProcessHacker
|
||||
}
|
||||
}
|
||||
|
||||
public static void TryStart(string command)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Diagnostics.Process.Start(command);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Could not start process:\n\n" + ex.Message, "Process Hacker", MessageBoxButtons.OK,
|
||||
MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
private static Dictionary<string, string> ParseArgs(string[] args)
|
||||
{
|
||||
Dictionary<string, string> dict = new Dictionary<string, string>();
|
||||
|
||||
Reference in New Issue
Block a user