Displaying a textfile using Wordpad.

L

Lorimer

Thanks in advance for any help received.

Is it possible to automatically display a text file in Wordpad using VB.NET
and if so how do I do it?

Thanks again

L
 
C

Cor Ligthert

Lorimer

\\\Notepad
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.arguments = "c:\windows\win.ini"
pi.FileName = "notepad.exe"
p.startinfo = pi
p.Start()
///
Is this sample as well OK?

Cor
 
K

Ken Tucker [MVP]

Hi,

Dim psi As New ProcessStartInfo

psi.FileName = "wordpad.exe"

psi.Arguments = "C:\test.txt"

Process.Start(psi)



Ken

------------------------

Thanks in advance for any help received.

Is it possible to automatically display a text file in Wordpad using VB.NET
and if so how do I do it?

Thanks again

L
 
H

Herfried K. Wagner [MVP]

Lorimer said:
Is it possible to automatically display a text file in Wordpad using
VB.NET and if so how do I do it?

\\\
Imports System.Diagnostics
..
..
..
Dim psi As New ProcessStartInfo()
psi.FileName = "wordpad.exe"
psi.Arguments = "C:\foo.txt"
Process.Start(psi)
///
 
S

Shiva

Process.Start ("wordpad.exe", "<path to the txt file>")

Thanks in advance for any help received.

Is it possible to automatically display a text file in Wordpad using VB.NET
and if so how do I do it?

Thanks again

L
 

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