软讯网络 > 软件时空 > 软件相关 > 获取当前工作路径
【标 题】:获取当前工作路径
【关键字】:
【来 源】:http://blog.csdn.net/Channels_net/archive/2007/02/07/1504247.aspx
获取当前工作路径
C#
string assemblyFolder =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
EVC
wchar_t pBuf[256];
GetModuleFileName(NULL,pBuf,sizeof(pBuf)/sizeof(wchar_t));
szPath=pBuf;
szPath = szPath.Left(szPath.ReverseFind(’\\’)+1);
【相关文章】
没有相关文章