System.IO.DirectoryInfo mDir
=new System.IO.DirectoryInfo("C:\\ABC");
string mStr=System.IO.Path.Combine( mDir.FullName,mDir.GetFiles()[0].FullName); 如果你可以保证c:\ABC下有且只有doc.txt一个文件,可以用上面的代码
=new System.IO.DirectoryInfo("C:\\ABC");
string mStr=System.IO.Path.Combine( mDir.FullName,mDir.GetFiles()[0].FullName); 如果你可以保证c:\ABC下有且只有doc.txt一个文件,可以用上面的代码
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货