Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What command do I use from the command line in Windows Vista to run a batch file called myBatch.bat?

share|improve this question

migrated from Oct 24 '12 at 12:58

This question came from our site for professional and enthusiast programmers.

First you need to navigate to the batch file, you can e.g. put your batch file in the root of your harddrive (c:)

If you put it here, you can navigate to the root by typing into the command line:


Now you can run the batch file by typing


Remember that it is a period before .bat and not a comma.

share|improve this answer

Just write in cmd line mybatch.bat

share|improve this answer
I thought it would be that easy.Thanks – pythonMan Oct 24 '12 at 11:39

Just write the Exact location of your batch file or jump to this location with the terminal:

  1. you can use cd to move from a directory to another
  2. use dir to see content of the current directory

then when you are in the file's directory, just type hisname.bat

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.