the Photoshop help menu should explain this well enough.
i learnt how to do it in there,
but so long ago, i couldn't explain it now, sorry.
but by using "Actions" in PS, you can record a series or operations,
and then apply them to whole folders of images.
so look up "Actions" in the PS help menu
cheers,
nick