Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Register OCXs with Vbscript

Status
Not open for further replies.

Count430

Programmer
Apr 26, 2002
127
US
Hello all:

I'm trying to add code to a script to re-register two OCX files. Can anyone provide sample code I can work from to do this asap...

Thanks...
 
Why not simply run regsvr32 ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks, I'm runing regsvr32, but I was trying to add this code to a vbscript and push via SMS.

I think Im close to completing this just working through a few bugs in the rest of my code.
 
WshShell.Run "regsvr32.exe " & Chr(34) & str2OCXFile & Chr(34) & " /s", 1, True
 
chuck all your ocx's in one folder, download with bits, have your vbscript work out its current folder location, loop through all the files in the folder if Right(aFile.Name, 4) = ".ocx" then run the regsvr32
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top