COM object to create a “Open File” dialog under Vista?

浪尽此生 提交于 2019-12-11 02:24:39

问题


I would like to use the Windows Common Dialog "Open File", to get a file from the user under JScript. This used to be possible using "ShowOpen()" on MSCOMDLG.commondialog object but, I can't find an equivalent way to do this that works under Vista.


回答1:


Try this:

http://www.tech-archive.net/Archive/Scripting/microsoft.public.scripting.vbscript/2007-10/msg00444.html

Helps?




回答2:


You could probably fake it by using CreateObject("Shell.Application").BrowseForFolder( ... ) and use the BIF_BROWSEINCLUDEFILES flag



来源:https://stackoverflow.com/questions/401257/com-object-to-create-a-open-file-dialog-under-vista

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!