In "An Improved GUI Component for Data Entry," January 2002, InstantDoc ID 23369, I showed you a GUI component for improving users' data-entry experience. Historically, both Microsoft and other developers have neglected to provide much data-entry scripting help. In VBScript and Windows Script Host (WSH), you can rely only on the InputBox function. My componentVbsInput.InputBoxprovides for password and number-only text boxes. It also supports multiline text so that you can collect larger amounts of text easily.
This month, I show you another COM object, wshextra.dll, that improves WSH's basic functionality. (You can download wshextra.dll from the Code Library on the Windows Scripting Solutions Web site at http://www.winscripting solutions.com.) Wshextra.dll consists of three components, each of which fills a gap in the WSH programming interface. The first componentthe Clipboard objectlets your WSH application move data to and from the clipboard. The other two componentsthe FileQuery object and the FileChooser object make up for missing but useful functionality in the Scripting.FileSystemObject object. The Scripting.FileSystemObject object provides a collection-based interface for accessing individual files in a given folder, but you can't filter the enumerated files based on a pattern. For example, using the Scripting.FileSystemObject object's methods, you can't select only the .bmp files in a folder. Instead, the methods will return all the files in a folder, then you must choose the files you want. . . .