By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,490 Members | 1,398 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,490 IT Pros & Developers. It's quick & easy.

How to launch Notepad and open an existing file?

P: n/a
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
Aug 12 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <bd*****@sgiims.comwrote in message
news:ex**************@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
Aug 12 '06 #2

P: n/a
Bob
Thanks a lot
Bob
"Siva M" <sh******@online.excite.comwrote in message
news:uB****************@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" <bd*****@sgiims.comwrote in message
news:ex**************@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


Aug 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.