Wednesday, September 7, 2011

Start Notepad application

   public static void StartNotepad(string filePath)
        {
            try
            {
                WshShell x = new WshShell();
                x.Exec(string.Format("notepad.exe {0}", filePath));
            }
            catch (Exception ex)
            {
                            }
        }

No comments:

Post a Comment