Here is a small correction, just to be consistent with REGSVR32 syntax.
Use
/s command line option before DLL or OCX name.
But, anyway there is no big difference, a sample works even if you placed it after DLL name.
Alex
>To register DLL or OCX invisible for user you may use the following way:
>
>oShell = CreateObject( "WScript.Shell")
>nResult = oShell.Run( "regsvr32 YourDLLOrOCXFile /s", 0, .T.)
>
>
nResult will contain 0 if DLL or OCX successfully registered.
>
>With best regards,
>Alex
>
>>Is there a way inside VFP (preferably without the RUN command) to determine if a control (DLL or OCX) has been registered, and if not register it?
>>
>>Bryan A. Jackson
>>FOCUS CMC
Alex