Sometimes I want to the the program associated with a file extension. This turns out to be a little trickier than I expected in Vbscript. I take a shortcut in OpensWith.vbs by shelling out and running the ASSOC command to get a starting point for my registry query. The script runs interactively or you can drag a file onto it. The long name is returned. If the program is associated to a DLL action, the DLL will be returned. 2/3-13 update: New OpensWith.vbs works with Windows 7.