Sunday, July 3, 2011

Execute external application through C#

Use below code to open MS Picture Manager through Window Application:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
                    proc.StartInfo.FileName = "ois.exe";
                    proc.StartInfo.Arguments = FilePath;//path should not have spaces. like "c:\\test.jpg"
                    proc.Start();

No comments:

Post a Comment