Registering an OCX file that is on the file server may not be a good idea. If the mappings change or the user loses the connection to the server the app that needs the OCX will break.
It would be better to copy the OCX to the users local drive and then register it. I only know that this works for me.
>PMFJI, Could you please explain this a little. What I want to do is register an OCX file that exists on the network. I tried your code exactly as you wrote it. The result was .T. I then replaced the line:
> lcRegFile = lcWindowsSysDir + lcFileName
>with:
> lcRegFile = "H:\saturne\bin\" + lcFileName
>The result was again true. I then replaced it with:
> lcRegFile = "D:\saturne\bin\" + lcFileName
>The result was again true. But there is no such folder or file. I even commented out every line above it except for the parameter line.
>
>All these tests I did on my own system. The file was already registered.
Dennis Lindeman