natraj
February 24th, 2000, 03:30 AM
How can I open and CPL file through visual basic i tried using shell (Shell("C:\windows\system\modem.cpl") but in vain , but i could able to open exe files using the above command can anybody help me out.
Natraj
natraj_@rediffmail.com
Cakkie
February 24th, 2000, 03:55 AM
What you are doing using the shell command is the same like typing something in the Run box, in you start menu. If you want to open a file to read it, then use the Open statement. If you want to open the file in it's default application, then use the ShellExecute API, an example code can be found at http://vbcode.webhostme.com/en/code.asp?id=101
Tom Cannaerts
slisse@planetinternet.be
The best way to escape a problem, is to solve it.