Bulk Un/Register DLLs & OCXs (VB Script)

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Intermediate
Author:
Steven Hoyt

Version Compatibility: Visual Basic 6, Visual Basic 5, Visual Basic Script

More information:
generate two batch files (one to register, one to unregister) that manage dlls/ocxs in a dev branch. the batch files execute and give the line number of a failed registry event. this is a two minute script that saves me time in trying to see what new dlls/ocxs were added/deleted...hope it is useful to all.

this is a .vbs script...which you can easily convert to a vb exe. You also need to change the hard-coded paths in the script to suit your needs.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: