Dos Command in VB

  • Thread starter Thread starter MadCrazyNewbie
  • Start date Start date
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
 
Back
Top