David Connell

Software Developer - Red Gate Software

Wild card registering COM dlls

Published Wednesday, November 23, 2005 1:04 PM

When developing a COM based application sometimes it’s sometimes useful to register all the DLLs/OCX at once.
From a command prompt
C:\develep\project\release\>for %i in (*.dll,*.ocx) do regsvr32.exe %i /s
This will try to register all dll’s even if they are not COM dlls. This is fine as the registration will fail silently.You can change the above command to register COM servers eg
C:\develep\project\release\>for %i in (*.exe) do %i -RegServer 

Comments

No Comments
You need to sign in to comment on this blog

















<November 2005>
SuMoTuWeThFrSa
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
Using Powershell to Generate Table-Creation Scripts
 For all of us who learn best by trying out examples, Bob Sheldon produces a PowerShell script file for... Read more...

Configuring Exchange Server 2007 to Support Information Rights Management
 In Exchange Server 2007, Information Rights management is easy to set up once you have set up the... Read more...

SQL Response: The dim sum interview
 Richard Morris met David and Nigel of the SQL Response team, in a dim sum Restaurant in Cambridge. They... Read more...

Why This SQL Server DBA is Learning Powershell
 Ron describes how he decided to study Powershell as a single scripting system to automate all the... Read more...

Using Covering Indexes to Improve Query Performance
 Designers of database systems will often assume that the use of a clustered index is always the best... Read more...