string s = Environment.CurrentDirectory; //需添加Forms.DLL s = System.Windows.Forms.Application.StartupPath; s = System.Windows.Forms.Application.ExecutablePath; s = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; s = System.Reflection.Assembly.GetEntryAssembly().Location;
原文地址:https://www.cnblogs.com/xslwm/p/9674089.html
时间: 2024-10-19 07:14:30