While I use VBScript and Windows Scripting Host quite a bit, I’ve always been a big fan of batch files! There are just so many system administration tasks that you can accomplish using command line tools and I love being able to combine them in a batch file. Over the years, I’ve written literally thousands of batch files that perform all sorts of tasks.
While a lot of my batch files just simply run a series of commands from start to finish, some need to prompt a user to make a choice in order to determine which direction the batch file should take. Back in the olden days, getting input from a user in a batch file was next to impossible. But then when Microsoft introduced DOS 6.0 in the early 1990’s, they included a new batch file command called Choice, which was designed to give you the ability to make your batch files interactive. At the time, this new feature singlehandedly revolutionized batch files. Once I got used to using the Choice command, I used it every chance I got.
|