111,126
社区成员
发帖
与我相关
我的任务
分享string path = Application.ExecutablePath + @"\images\1.gif";
string path = Application.ExecutablePath + @"images\1.gif";
//这样不就搞定了嘛
string path=System.Windows.Forms.Application.StartupPath + @"../../../";
System.IO.Directory.SetCurrentDirectory(path);
FileInfo OldFileName = new FileInfo(System.IO.Directory.GetCurrentDirectory() + @"\images\1.gif");