如何在C ++中从文件夹路径打开文件夹 [英] how to open folder from folder path in C++

查看:437
本文介绍了如何在C ++中从文件夹路径打开文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在C ++(MFC VS 2010)中从文件夹路径将文件夹操作到屏幕,

示例:我有文件夹路径:D:\\ Music \\ YoungMusic
因此,我必须使用C ++代码在屏幕上打开文件夹YoungMusic(同一命令窗口+ E).


Hi all,

how to opem folder to screen from folder path in C++(MFC VS 2010),

Example: I have folder path: D:\\Music\\YoungMusic
so I must use C++ code to open folder YoungMusic on screen(the same command window + E).


thanks in advance.

推荐答案

您可以使用ShellExecute:单击! [
You can use ShellExecute: http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx[^]

Click![^]


也许您想要的是ShellExecute(Ex);
Maybe ShellExecute(Ex) is what you want;


这篇关于如何在C ++中从文件夹路径打开文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆