c#获取文件所在的文件夹(收藏夹功能)

来源:百度知道 编辑:UC知道 时间:2024/05/27 06:56:14
我做了个收藏夹功能,添加点击浏览响应函数。收藏夹里面有快捷方式也有文件夹,想要实现点快捷方式时获得这个快捷方式所在的文件夹,有没有这样的系统函数呢

12.枚举一个文件夹中的所有文件
CFileFind finder;
BOOL bWorking = finder.FindFile(%%1+"\\*.*");
while (bWorking) {
bWorking = finder.FindNextFile();
if(!finder.IsDirectory()){
CString %%1=finder.GetFilePath();
%%2
}
}

这个真不会.

直接运行你建的那个快捷方式不就可以了