Automate tasks in Windows XP

Is there a straightforward way of automating basic tasks in Windows XP?

e.g. deleting any files of a certain type from a specified folder (and subfolders) while leaving the rest untouched.

On Mac OSX I use Automator and can set up simple workflows to run at specified times, or save them as standalone applications to run when i click them.

How do you guys automate tedious tasks?

I'm aware of scheduled tasks and such in XP, but that won't work as it seems to only relate to running specific exiting applications at specified times.

Is there a basic way to script these either using a comand-line interface or GUI?

Write a batch script

thanks faissialoo. was thinking i'd have to use a powershell script or something. worked well.

Thanks!