Photoshop CS 2 batch function

Can som1 explain to me how to use the batch function in photoshop CS2, becuz i want the change the contrast and brightnes in all pics in the same, and i dont want to opne 1000 pics and do it all manual.




<3