Home All Groups Group Topic Archive Search About

How to launch Notepad and open an existing file?

Author
12 Aug 2006 6:20 PM
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

Author
12 Aug 2006 6:49 PM
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")

"Bob" <bduf***@sgiims.com> wrote in message
news:ex6MIwjvGHA.2036@TK2MSFTNGP05.phx.gbl...
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
Author
12 Aug 2006 9:04 PM
Bob
Thanks a lot
Bob
Show quoteHide quote
"Siva M" <shiva***@online.excite.com> wrote in message
news:uB%23rWAkvGHA.3912@TK2MSFTNGP03.phx.gbl...
> 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")
>
> "Bob" <bduf***@sgiims.com> wrote in message
> news:ex6MIwjvGHA.2036@TK2MSFTNGP05.phx.gbl...
> 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
>
>