How to open or execute a file

Create a file named text.txt and execute these lines in Code Behind

  Dim location As String = "C:\test.txt"
 Dim Proc As New System.Diagnostics.Process
                ' Proc.StartInfo.WorkingDirectory = "C:\"
                Proc.StartInfo.FileName = location
                Proc.Start()

system.diagnostics.process

Related Posts

No Comments Yet.

Leave a reply

You must be logged in to post a comment.