Run a batch file - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Run a batch file

What is the code to excecute a batch file in a given directory?

Comments

  • jeffmanjeffman Posts: 112Member
    : What is the code to excecute a batch file in a given directory?
    : Jeffman
    to run a batch file you could use the shell command and type GetPath or some other vb.net path getter environment variable.
    this is how i would proabably do it:
    Shell(CurrentPath or GetPath(the apps path) MorePathsProgramName.bat)
    you will have to check on the enivronment variables though in MSDN search.
    Thatnks what i think you should do.

Sign In or Register to comment.