IE Browse File dialog box from vbscript

04-24-2007, 06:13 PM
Like the title says, I'd like to invoke the Internet Explorer Browse File dialog from a client-side vbscript to allow my users to pick a file, then grab the path and file name to create a link. Google has been no help, MSDN has been no help, Search is not my friend. I tried

dim objShell
set objShell = CreateObject("Shell.Application")

to use the FindFolder method (at least it's a start!), but got an error saying that wasn't a valid ActiveX Object. Thanks!

04-26-2007, 08:29 AM
VBScript in IE doesn't have access to the Local Computer for security reasons. Otherwise, there's nothing stopping me from making a web site that reads the files on your computer, and sends the content back to me without you knowing.

Any chances you can give us more details on exactly what you're trying to do?

04-26-2007, 10:41 AM
Assuming you are talking about a vbs (or wsh) script. Well, search is my friend, but sometimes we have differences on terms that should have been used. :p

05-09-2007, 07:54 AM
Can't you just use a HTML file input object?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum