How to launch Notepad and open an existing file?

B

Bob

Looking at shell command I don't see how I can specify the filename to open.
I need to launch notepad AND automatically open an existing file.
Using VB 2005.

Any help would be greatly appreciated.

Bob
 
S

Siva M

Process.Start ("myfile.txt") - This will open the file in the default app
for text files. To specifically use Notepad, Process.Start ("notepad.exe",
"myfile.txt")

Looking at shell command I don't see how I can specify the filename to open.
I need to launch notepad AND automatically open an existing file.
Using VB 2005.

Any help would be greatly appreciated.

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top