![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Dec 2009
Location: Sydney
Posts: 1,017
|
Hey Guys,
I was wondering if someone knew of a better way to re-register a bunch of DLL's that's not messy like what's below? Code:
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "regsvr32.exe c:\windows\system32\whatever1.dll"
objShell.Run "regsvr32.exe c:\windows\system32\whatever2.dll"
objShell.Run "regsvr32.exe c:\windows\system32\whatever3.dll"
objShell.Run "regsvr32.exe c:\windows\system32\whatever4.dll"
Code:
Sub RegisterMultipleDLL(RegisterDLLArray) Dim strDLL If IsArray(RegisterDLLArray)For Each strDLL in RegisterDLLArraySome command to run regsrv32.dll /s with the appended name |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Dec 2009
Location: Sydney
Posts: 1,017
|
No-one has any ideas?
|
|
|
|
|
|
#3 |
|
(Banned or Deleted)
Join Date: Apr 2012
Posts: 445
|
I'm not sure. Wouldn't you just do (in the loop) objShell.Run "regsvr32.exe /s " + strDLL?
(replacing regsvr32.exe with the full path if necessary) |
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|