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
[email protected]
Printable View
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
[email protected]
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
[email protected]
The best way to escape a problem, is to solve it.