Dos Command in VB

M

MadCrazyNewbie

Hey Group,

I`ve been using the following code that Herfried K Kindly gave me:

Dim psi As New ProcessStartInfo()
psi.FileName = "C:\bla.exe"
psi.Arguments = "abc.def"
Process.Start(psi)

to run some Dos commands. Unfortunatly if I try and run on, it tells me that
the program needs to be run from the Data Directory. Is there a way I can
like Get it to run from the Data Directory, Something Like the `Start In`
options that you have on Icons?

Ta
MCN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top