View Single Post
Old Nov 10th, 2006, 1:27 PM   #2
MBirchmeier
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 211
Rep Power: 4 MBirchmeier is on a distinguished road
Quote:
Originally Posted by Samuaijack View Post
hey guys,
I've always wandered about the use of batch programming,i know that they are Dos Commands in a text file saved as a .bat file,but what is the use of such files,and does any one use those now days???
That's pretty much all it is yes, it's simply just a bunch of dos/shell commands back to back.

There's reasons for it, but generally for more complex stuff I try to use perl or something similar. Here's a list of some things I've made batch files for in the past:

* I had to copy files from my computer to a test server rather regularly, but not all of them, only certain types, I created a batch file to copy these for me.
* I often use remote/logical drives for different projects just to keep things easier, I'll often use batch files to set up the drives the way I want for a certain project (as I switch projects a bit)
* I had one project where a file on a remote device needed to stay 'release' but often needed to be switched to 'debug' for debugging, I created a script to re-name the files appropriately when debugging with one click, and back again.

Hope this helps...

-MBirchmeier
MBirchmeier is offline   Reply With Quote