D:\Backup\我的文档\Visual Studio 2008\Projects\tools\tools\bin\Debug\tools.exe
如题:
private void radioButton3_CheckedChanged(object sender, EventArgs e)
{ // string path = null; //path = AppDomain.CurrentDomain.BaseDirectory;//获取当前根目录,但是不起作用
string path = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; Process.Start("explorer.exe", path);使用AppDomain 来获取当前的根目录,但是我的代码来获取后,path始终指向D:\Backup\我的文档\Visual Studio 2008\Projects\tools\tools\bin\Debug\tools.exe,请高手。如:D:\Backup,还有 我想获取其中一个文件夹的目录 应该如何操作,如:D:\Backup\我的文档\Visual Studio 2008\Projects\tools\tools或者D:\Backup\我的文档\Visual Studio 2008\Projects,此刻怎么写?谢谢各位大侠。
如题:
private void radioButton3_CheckedChanged(object sender, EventArgs e)
{ // string path = null; //path = AppDomain.CurrentDomain.BaseDirectory;//获取当前根目录,但是不起作用
string path = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; Process.Start("explorer.exe", path);使用AppDomain 来获取当前的根目录,但是我的代码来获取后,path始终指向D:\Backup\我的文档\Visual Studio 2008\Projects\tools\tools\bin\Debug\tools.exe,请高手。如:D:\Backup,还有 我想获取其中一个文件夹的目录 应该如何操作,如:D:\Backup\我的文档\Visual Studio 2008\Projects\tools\tools或者D:\Backup\我的文档\Visual Studio 2008\Projects,此刻怎么写?谢谢各位大侠。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货