In Photoshop you have to create the action first, that you want to "batch apply" (unless of course you want to use a preset).
1: Make sure the action window (or action tab) is visible . In the action window on the upper right hand corner, click on the small black triangle and choose NEW ACTION.
It'll prompt you to name the new action. Give it a name that you later will remember.
2: OPEN one picture from the folder that you want to batch process, and apply whatever you need to ( rotate, filters... etc).
3: SAVE the picture.
4: CLOSE the window.
5: STOP RECORDING the action by clicking the black square at the bottom of the Action window.
6: Go to FILE....AUTOMATE....BATCH. In the window that'll come up choose your action,
specify source and destination folder and click OK.