文件 --bin--debug--exe
--A--a.txt
--B--C--c.txt
三个文件夹bin A B 在同一个目录下 用Application.StartupPath取得应用程序exe文件启动的目录路径
比如 string strPath = Application.StartupPath;
我现在要想取得a.txt和c.txt的路径,该怎么取?外行刚开始接触C#程序,请教
--A--a.txt
--B--C--c.txt
三个文件夹bin A B 在同一个目录下 用Application.StartupPath取得应用程序exe文件启动的目录路径
比如 string strPath = Application.StartupPath;
我现在要想取得a.txt和c.txt的路径,该怎么取?外行刚开始接触C#程序,请教
解决方案 »
- 问个关于 private System.Timers.Timer 的问题
- winform程序问题,高手来
- 求一简单正则表达式
- 使用Devpress TreeList控件来生成树的问题
- C#是语言吗?还是只是开发工具?
- C#有没有办法执行存放在字符串中的命令?
- 求C#串口通信程序
- 用C#如何判断本机是否联入互联网
- 请教一下,绘制这样的图各位有什么思路
- 安装visual studio2015preview 和Xamarin遇到好多问题无法安装,恳请前辈指教如何能完整安装vs2015并配置好可以开发移动端
- CrystalReport 水晶报表动态查询显示图片问题,急!
- 在电脑端和Windows Phone 7手机之间做一个实现QQ功能的聊天软件
int i=strPath.LastIndexOf("\\");
string strPathA=strPath.Substring(0,i) + "\\A\\a.txt";
string strPathC=strPath.Substring(0,i) + "\\B\\C\\c.txt";
string strPath = Application.StartupPath;
int i=strPath.LastIndexOf("\\");
strPath=strPath.Substring(0,i);
i=strPath.LastIndexOf("\\");string strPathA=strPath.Substring(0,i) + "\\A\\a.txt";
string strPathC=strPath.Substring(0,i) + "\\B\\C\\c.txt";