Hi. I am wondering how you run other programs from visual basic, for example, i want to run notepad (c:\windows\notepad.exe i think) when you hit a button.
Printable View
Hi. I am wondering how you run other programs from visual basic, for example, i want to run notepad (c:\windows\notepad.exe i think) when you hit a button.
Use the shell function.
VB Code:
Shell "c:\windows\notepad.exe", vbNormalFocus
thanks man! :D :D :D
No Problem.
actually.. now how would i oepn a file other than a exe? such as a text file
Here is a good place to start. It will give you more detailed information. This is the way lot's of programmers like to do it. I prefer to use the File System Object.
where is a good place to start?
Sorry i always do that. Here
http://www.vbworld.com/files/openstatement/