Computing.Net > Forums > Programming > use vb.net to execute batch files

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

use vb.net to execute batch files

Reply to Message Icon

Original Message
Name: Nickd
Date: December 29, 2004 at 14:10:11 Pacific
Subject: use vb.net to execute batch files
OS: xp
CPU/Ram: P3 500mhz
Comment:

I have 2 batch files that i run manually. I want to setup a vb.net form with 2 buttons on it and have them point to the batch files. I want to make this a exe.

Is this possible? your help is greatly appreciated


Report Offensive Message For Removal


Response Number 1
Name: Chi Happens
Date: January 3, 2005 at 06:01:59 Pacific
Reply: (edit)

Yes you can do this. You use System.Diagnostics.Process to create the process and then call Start() method.

Hope this helps,
Chi

"They mostly come at night...mostly"


Report Offensive Follow Up For Removal







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








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software