Hi,

I am currently using this code to register ocx's that come with my program, whenever my program loads:

VB Code:
  1. FileCopy App.Path & "\MSWINSCK.OCX", "C:\WINDOWS\SYSTEM\REGSVR32"
  2. FileCopy App.Path & "\COMDLG32.OCX", "C:\WINDOWS\SYSTEM\REGSVR32"
  3. FileCopy App.Path & "\MSCOMCTL.OCX", "C:\WINDOWS\SYSTEM\REGSVR32"
How do I still make the ocx's register even though the file REGSVR32 is not located through the file path "C:\WINDOWS\SYSTEM"?