Application.StartupPath.Substring(0,Application.StartupPath.Substring())Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"))这句代码神马意思?这是指的哪条

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 22:14:28
Application.StartupPath.Substring(0,Application.StartupPath.Substring())Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf(

Application.StartupPath.Substring(0,Application.StartupPath.Substring())Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"))这句代码神马意思?这是指的哪条
Application.StartupPath.Substring(0,Application.StartupPath.Substring())
Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"))这句代码神马意思?这是指的哪条路径?

Application.StartupPath.Substring(0,Application.StartupPath.Substring())Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"))这句代码神马意思?这是指的哪条
应该是:Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\"));Application.StartupPath:表示可启动的可执行文件的路径,就是你运行的这个程序的文件路径;.LastIndexOf("\\")):表示获取字符串中最后一个"\"所在位置,是一个整数值;.Substring(a,b):表示从字符串的第a的位置开始,截取长度为b的字符
希望能解决您的问题.