System.IO.Path.GetFileName(Application.ExecutablePath); //Application.ExecutablePath获取到程序完整路径,包括文件名和扩展名