Home Blog Archive Windows Create batch files

Create batch files

  • Oct 29, 2025
  • 358
  • 0

To create and program batch files, all you need is the Microsoft text editor - and of course batch commands. In this practical tip, you will learn how to create batch files using small example programs.

More batch commands

Even though batch files are just simple programs, you can do a lot with them. You can get all batch commands by typing "help" in the Command Prompt . Here is an example of a small program that terminates processes and starts the browser with google.de. You have to confirm each step by pressing a button.

  1. Open Notepad again and start with "@echo off".
  2. Type "taskkill /IM chrome.exe" under it to quit Chrome. You can find more processes by typing "tasklist" in the console.
  3. In the next line, type "pause". Windows is now waiting for your next input.
  4. Finally, google.de should be opened. To do this, enter "start chrome.exe https://www.google.de/".
  5. You can save the file as a batch file using the instructions described above and start it with a double-click.
With batch files you can, for example, use the "taskkill" command to close certain processes. Processes can be started via "start". (Screenshot: Ferdinand Pönisch)

Also interesting:

  • Convert batch file to EXE file
  • Rename file via CMD - this is how it works
  • Windows: Merge files via command line

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =