How to OPen a File in VB.NET

July 18, 2005 at 21:29:32
Specs: WinXP/ Fedora, 2.4/512

Hello,
I would like to know what do I enter in VB.NET script so when I click button1 it opens up the file "C:\test.exe".


See More: How to OPen a File in VB.NET

Report •


#1
July 19, 2005 at 02:30:14

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


Chi


They mostly come at night...mostly.


Report •

#2
July 23, 2005 at 16:19:48

When I paste this code in VB and exec the program, test.exe opens up but all I see is a blank cmd window titled "C:\test.exe". I know it is working because Esc 2 times and Y (for yes) quits the program like it should. So it is working, but with a blank output window. Any ideas?

Report •

Related Solutions


Ask Question