Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Common File Dialog for Vista

Reply
 
Old 10-17-2008   #1 (permalink)
jjsonp


 
 

Common File Dialog for Vista

I'm on 64-bit and I've found that the old MSComDlg.CommonDialog object
can only be invoked under 32-bit. I can use the Word dialog but of
course that requires installing Word, and creating the
Word.Application object is slow.

What I'd like to know is how (or if) I can invoke a file-open/browse
dialog with some open source object via VBScript. Clearly nearly every
program does this, including open source (Firefox, FileZilla, etc.)

I guess the other thing would be a Windows API wrapper class. Anyway,
does anyone have something like this? Thanks.

My System SpecsSystem Spec
Old 10-18-2008   #2 (permalink)
Tom Lavedas


 
 

Re: Common File Dialog for Vista

On Oct 17, 3:16*pm, jjs...@xxxxxx wrote:
Quote:

> I'm on 64-bit and I've found that the old MSComDlg.CommonDialog object
> can only be invoked under 32-bit. I can use the Word dialog but of
> course that requires installing Word, and creating the
> Word.Application object is slow.
>
> What I'd like to know is how (or if) I can invoke a file-open/browse
> dialog with some open source object via VBScript. Clearly nearly every
> program does this, including open source (Firefox, FileZilla, etc.)
>
> I guess the other thing would be a Windows API wrapper class. Anyway,
> does anyone have something like this? Thanks.
I haven't tried this in Vista, but using IE should work:

http://members.cox.net/tglbatch/wsh/ChooseFile.vbs.txt

The one thing that will not work in IE 7 is the line that reads ...

IEApp.fullscreen = True

Comment that out.

Tom Lavedas
-------------------
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
how to use the Common Item Dialog from vista in VBscript VB Script
common dialog on vista VB Script
Common Dialog (Load/Save) - Missing Keyboard Shortcuts? Vista file management
Newbie question about Explorer Views and common dialog details view?? Vista General
Copying Dialog appears over Confirm File Replace dialog Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46