I had been using InstalledPrograms.vbs, a VBScript script written by Bill James, to query systems for a list of installed programs. I ran the script today while logged into a user's account on a Microsoft Windows 7 system, I received an error message because the script was in a sudirectory beneath
C:\Program Filesand the script's output file is stored by default in the directory from which the script is run, but the user's account did not have permission to write to that directory. To fix the problem, rather than move the script to another directory or run the script from an administrator account, I added VBScript code from Rob van der Woude's Browse Folder Dialog function so that a user can select the directory to be used for the output file.
[ More Info ]