C# 获取程序运行目录

2021-04-07 15:26

阅读:669

标签:for   roc   ica   basedir   domain   directory   startup   str   dom   

                string a = "BaseDirectory:" + AppDomain.CurrentDomain.BaseDirectory + "\r\n" +
                    "MainModule:" + Process.GetCurrentProcess().MainModule.FileName + "\r\n" +
                    "ApplicationBase:" + AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "\r\n" +
                    "StartupPath:" + Application.StartupPath + "\r\n" +
                    "ExecutablePath:" + Application.ExecutablePath + "\r\n" +
                    "GetCurrentDirectory:" + Directory.GetCurrentDirectory();

  

C# 获取程序运行目录

标签:for   roc   ica   basedir   domain   directory   startup   str   dom   

原文地址:https://www.cnblogs.com/XuPengLB/p/9104957.html


评论


亲,登录后才可以留言!