Running a DOS Batch file from a program.

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

How do I run a dos batch file from a program? I am guessing I have to run
cmd.exe with the parameter of the batch file.

TIA - Jeff.
 
This is simpler: Process.Start ("mybatfile.bat")

How do I run a dos batch file from a program? I am guessing I have to run
cmd.exe with the parameter of the batch file.

TIA - Jeff.
 
Something else I should have pointed out - I need to do this from a service.
Will this still work?

Thanks.
 
Yes, it will.

Something else I should have pointed out - I need to do this from a service.
Will this still work?

Thanks.
 
Back
Top