// 126 -> 20126 -> external code editor string sFileName = exec.mainform.filenametoload; if ((sFileName == "") || (sFileName == Application.StartupPath + "\\Contents\\Empty.txt")) { AS3.Additemtolistbeginning("No file loaded!", 2); return; } System.Diagnostics.Process proc; proc = System.Diagnostics.Process.Start(@"C:\Program Files (x86)\PSPad editor\PSPad.exe", sFileName); proc.WaitForExit(); exec.mainform.loadfile();