Can someone point me in the right direction?

I'd like to get hold of some good tutorial or script for windows 9X & 2000.

For example: I'd like to run a batch file to automatically compress and archive web log files when they reach 15mb in size.

Thanks in advance for being helpful.