Computing.Net > Forums > Programming > How to OPen a File in VB.NET

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to OPen a File in VB.NET

Reply to Message Icon

Name: besttech01
Date: July 18, 2005 at 21:29:32 Pacific
OS: WinXP/ Fedora
CPU/Ram: 2.4/512
Comment:

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".



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: July 19, 2005 at 02:30:14 Pacific
Reply:

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.


0

Response Number 2
Name: besttech01
Date: July 23, 2005 at 16:19:48 Pacific
Reply:

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?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How to OPen a File in VB.NET

How to clear a textbox in asp.net www.computing.net/answers/programming/how-to-clear-a-textbox-in-aspnet-/8234.html

Adding tabs in a string in vb.net www.computing.net/answers/programming/adding-tabs-in-a-string-in-vbnet/11853.html

Opening and closinf Word in vb.net www.computing.net/answers/programming/opening-and-closinf-word-in-vbnet/8112.html