Link to home
Start Free TrialLog in
Avatar of kpax
kpax

asked on

VB/VB.Net - File selection command line execution

I would like to create a small app that selects a file and executes it at command line or places it at command line. The file is a script that I currently run as a batch script, but I want to make it automated using vb buttons and file selection for execution.

Anybody know some function that I can use to select a batch script file and execute at command prompt via click of a button?

Thanks
kpax
Avatar of MCummings111400
MCummings111400
Flag of United States of America image

Try using the common dialog control to select the file.

And using Shell to execute the file.
Avatar of CleanupPing
CleanupPing

kpax:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
ASKER CERTIFIED SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial