HOWTO: Find VB32.EXE Without Searching the Hard DriveLast reviewed: November 19, 1997Article ID: Q176876 |
The information in this article applies to:
SUMMARYThe sample code below demonstrates how to find the location of VB32.EXE by checking the registry rather than searching the entire hard drive.
MORE INFORMATIONBecause customers occasionally install Visual Basic with a pathname other than the default suggested by SETUP, it may be necessary to search for the directory in which VB32.EXE has been installed. While simply searching the local hard drive with an equivalent to DIR/S serves in most circumstances, the presence of multiple large volumes makes a brute-force search of all the directories on each volume impractical. Because Visual Basic Setup stores the fully-qualified path name to VB32.EXE under the key "HKEY_LOCAL_MACHINE\Software\Classes\VisualBasic\Shell\Open\command," it is a fairly simple task to obtain that pathname with the RegQueryValueEx() API.
Step-By-Step Instructions
REFERENCES"Visual Basic Programmer's Guide to the Win32 API", Daniel Appleman, PC Magazine Press; c1996. Keywords : APrgOther vb432 VB4WIN Version : WINDOWS:4.0 Platform : WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |