怡然金鱼

文章
6
资源
0
加入时间
3年1月13天

c#获取执行文件所在的盘符

1、System.Windows.Forms.Application.StartupPath;2、System.AppDomain.CurrentDomain.BaseDirectory;3、System.Environment.CurrentDirectory;以上bai三du种zhi方法都可以获取程dao序根目录,4102string programPath=以上三者选一。string volume = programPath.Substring(0, System.Windows.Form