how do you register and unregister an .ocx?

I heard that to register it you have to
shell C:\WINDOWS\SYSTEM\Regsvr32.exe
or something, but how do you specify the .ocx file you want to register.

and how do you unregister an .ocx