控制台、app等桌面应用程序(兼容系统自启)
System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName)
web BS架构
System.AppDomain.CurrentDomain.BaseDirectory
控制台、app等桌面应用程序(兼容系统自启)
System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName)
web BS架构
System.AppDomain.CurrentDomain.BaseDirectory
C#获取项目程序及运行路径的方1.asp.net webform用“Request.PhysicalAppl
本章讲述:C#获取.exe文件的运行目录的方法;WPF中获取.exe文件的运行路径:System.Windo
using System;using System.Collections.Gon1{ class Program { static void Main(string[] args) {
//获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assem
启动路径 1.System.Reflection.Assembly.GetExecutingAssembly().Lo
复制自:C# 使用Environment获取当前程序运行环境相关信息
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M