David, see http://wsh2.uw.hu/ch12f.html
Just note that you're using Window Eyes, not Windows Script Host, to host the script, so you'd create the object from script rather than wscript.
Set objDlg = script.CreateObject("Shell.Application")
Set objF = objDlg.BrowseForFolder(0, "Browse Filesystem", &h4000)

Read the page I linked you to carefullly though, there's some things going on here you want to watch for that are explained in detail.

Jared



On 1/9/2010 4:01 AM, David wrote:
In a VBScript, is there an easy way, to display an 'Open File' dialog. What I want, is to present the user the chance of choosing the file to open. I want to put him in a standard Windows dialog, like the one you know from Word, or Notepad, or whatever; which leaves you the chance also to browse your folder etc. Is there an instruction to be used, or an object to be put to work?
Thanks,

Reply via email to