How to launch Notepad and open an existing file?

  • Thread starter Thread starter Bob
  • Start date Start date
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
 
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
 
Back
Top