Batch scripting is a text file containing a series of commands intended to be executed by the command interpreter. Much like a unix / linux shell script, the purpose of a batch script is to sequentially process a series of commands.
Subtracting 1 year from today example:
Here is what you can do with this. Say you have a "Junk" folder and you only want keep items for 1 year. Using the above method you can subtract a year in the batch file and then using the xcopy and delete commands copy all old files to a temp folder and delete them all. I have provided an example below of this.
Feel free to leave a comment or question
Code block comments
2010-03-19
Added a code block for comments
Windows 7 Items
2009-09-24
new info on windows 7
Snort on Debain Lenny
2009-08-19
Installing snort+PGSQL on Debian