Home > Archive > microsoft.public.cert.exam.mcsd > April 2003 > Question about programming





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Question about programming
Ilena

2003-04-26, 11:23 am

Hi! I'm programming with VB and I want to know how open an
txt file in notepad. I tried to use the shell command,
but this only open exe file, like notepad.exe. I don't
know how to pass parameters (the file name) to this
command. Please, help me.
Kline Sphere

2003-04-26, 11:23 am

If you are using the shell command in vb6 it's as simple as shell
"notepad.exe pathtomyfile.txt".

In vb.net you can still use the shell command, or you can use the
create and use the process object which gives you more control

dim a as new process()
a.start("pathtomyfile.txt") // Note this will launch the application
associated with .txt files.

On Sat, 26 Apr 2003 08:45:06 -0700, "Ilena" <ii_pinto@yahoo.com>
wrote:

>Hi! I'm programming with VB and I want to know how open an
>txt file in notepad. I tried to use the shell command,
>but this only open exe file, like notepad.exe. I don't
>know how to pass parameters (the file name) to this
>command. Please, help me.


Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net