文件test.txt存在于C:tmp目录下
打开此目录可以使用ShellExecute。 代码如下。
shellexecute(NULL,_t ) open )、_t ) explorer.exe )、_t ) c:(tmp )、null、SW_shool
如果要向其中添加“选择文件”功能,可以将上面的目录重命名为文件名称,并在前面加上“/select,”。 代码如下。
shellexecute(null,_t ) open )、_t ) explorer.exe )、_t )/select,c: )tmp )test.txt