VBScript program demonstrating how to use Microsoft Internet Explorer to display a file open dialog
to the user. The program verifies that Internet Explorer is on the client. The program defaults to
the current directory and displays all files in the folder with extension ".xls". The program
returns the filename the user selects. The program also demonstrates the use of the wshShell.Popup
method to display messages.
The program may not function correctly if Windows Script Host (WSH) is not at least version 5.1. This is because the Wscript.Sleep command is used to pause execution. The program checks the version of WSH and only uses Wscript.Sleep if it is supported. However, it has been found that the program can occasionally raise an error if this command is not used.
IEOpen.txt <<-- Click here to view or download the program