If you are working in large, multi-module application and your testing involves starting and stopping multiple module than it would be pain to do it manually every time. I often need to clean persistent files, logs file and other data files before running some of my testing script. Sample Batch file in Windows to clean directories and remove files: In this article, we will learn how to write a batch file in windows 8 operating system and revisit some important things about batch file. Writing batch scripts are not full blown scripting, but it's lighter form of it, It works best to train yourself and develop that scripting mentality to improve productivity. Remember, shell scripting is one of the important skill to get a programming job and more important to support application running on UNIX operating sytem in Investment banking domain. Anyway knowing is not enough, the main thing is adapting and taking full advantage of them, developing mentality towards scripting, automation and writing batch files. Though not every programmer, developer or computer user has mindset to use batch file, something it's too difficult to write, some just not able to fight with initial resistance and many of them are not even aware of batch file.Īs a Java programmer, you really don't need to learn these stuff, as almost everybody who use windows operating system for more than year, knows about it.
Batch file also reduce chances of error, once tested and encourage re-usability by sharing them across team or people with similar needs. They not only help you to automate boring, time consuming task but also saves lot of time doing and doing them again. Batch files and shell scripts are developers best friend, they help to improve productivity a lot.