Help: Executing MS-Dos Prompt command by code
I'm using MS Access, so the clients doesn't has the COM. But i have the files on my server, so what i want to make is, every time the program start it will check does the clients has registered the COM if no errors then continues, else the program will execute the code that execute the string variable:
"RegSvr32 \\server\****.ocx" to the Command Prompt.
How can i make code that like executing MS-Dos Prompt. Thanks for any kind of help.
# 1 Re: Help: Executing MS-Dos Prompt command by code
Have you tried the Shell function?
http://msdn.microsoft.com/library/en-us/vbenlr98/html/vafctShell.asp
# 3 Re: Help: Executing MS-Dos Prompt command by code
No. You can run:
Shell "RegSvr32 \\server\filename.ocx"
to register the component from within your app.