除了shellexecute还有什么可以弹出文件夹的方法?

[复制链接]
查看11 | 回复6 | 2011-9-6 07:41:49 | 显示全部楼层 |阅读模式
回复

使用道具 举报

千问 | 2011-9-6 07:41:49 | 显示全部楼层
有Openbox的用来打开文件夹的控件追问Openbox?没听说过啊
回复

使用道具 举报

千问 | 2011-9-6 07:41:49 | 显示全部楼层
记错了,是delphi下面的OpenDialog但是可以用WinExec调用explorer.exe打开如:WinExec(\"explorer.exe\\\"C:\\\\Windows\\\"\",SW_SHOWNORMAL);
回复

使用道具 举报

千问 | 2011-9-6 07:41:49 | 显示全部楼层
我的地址存在字符串里,比如cpath,应该如何书写呢?
回复

使用道具 举报

千问 | 2011-9-6 07:41:49 | 显示全部楼层
把“explorer.exe”和cpath连接起来,注意之间要空格,假设得到的新的字符串是s就直接WinExec(s,SW_SHOWNORMAL)
回复

使用道具 举报

千问 | 2011-9-6 07:41:49 | 显示全部楼层
1ShellExecute(m_hWnd,\"open\",\"D:\\\\programme\\\\FolderTest\",NULL,NULL,SW_SHOW);2SHELLEXECUTEINFOShExecInfo={0};ShExecInfo.cbSize=sizeof(SHELLEXECUTEINFO);ShExecInfo.fMask=SEE_MASK_NOCLOSEPROCESS;ShExecInfo.hwnd=NULL;ShExecInfo.lpVerb=NULL;ShExecInfo.lpFile=\"D:\\\\programme\\\\FolderTest\\\\debug\";ShExecInfo.lpParameters=\"\";ShExecInfo.lpDirectory=NULL;ShExecInfo.nShow=SW_SHOW;ShExecInfo.hInstApp=NULL;ShellExecuteEx(3WinExec(\"explorer.exe\\\"D:\\\\programme\\\\FolderTest\\\\debug\\\"\",SW_SHOW);4STARTUPINFOsi;PROCESS_INFORMATIONpi;ZeroMemory(si.cb=sizeof(si);ZeroMemory(if(CreateProcess(NULL,\"explorer.exe\\\"D:\\\\programme\\\\FolderTest\\\\debug\\\"\",NULL,NULL,NULL,NULL,NULL,NULL,CloseHandle(pi.hThread);}追问我的地址存在字符串里,比如cpath,应该如何书写呢?
回复

使用道具 举报

千问 | 2011-9-6 07:41:49 | 显示全部楼层
可以用createprocess,system,等,直接调用explorer.例如system(\"%windir%\\\\explorer.exec:\\\\windows\\\\system32\")追问我的地址存在字符串里,比如cpath,应该如何书写呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行