问题
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