private bool IsShellFile(String executablePath) { String upPath = executablePath.ToUpperCase(); return(upPath.EndsWith(".CMD") || upPath.EndsWith(".BAT")); }