The OP hasn't stated what format the files should be! Here is an example of using a script in Photoshop saving the files as PNG.
Save the script as plain text into Photoshops Presets/Scripts folder with an extension of jsx, restart Photoshop so it will pick up the new script.
Open your document the File - Script and select the script.
[CODE]#target photoshop
main();
function main(){
if(!documents.length) return;
try{
var Path = app.activeDocument.path;
}catch(e){
alert("This document needs to be saved before runnig this script!");
return;
}
var outputFolder = Folder(Path + "/Out");
var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
if(!outputFolder.exists) outputFolder.create();
var Sizes =["640x480","600x600","505x190","500x500","480x640","400x800","400x400","400x340","390x390","360x640","360x480","352x416","350x380",
"320x480","320x320","320x240","320x239","300x300","240x320","208x320","208x208","208x144","176x220","176x208","176x205,","176x200","176x190",
"176x176","176x144","176x128","144x176","128x160","128x146","128x145","128x144","128x132","128x128","128x114","128x97","128x96","128x64",
"120x128","120x56","104x49","102x80","101x80","100x100","100x60","100x50","96x65","96x64","96x34","74x53","60x60"];
var startRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
doc = app.activeDocument;
app.displayDialogs = DialogModes.NO;
for(var a in Sizes){
var savedState = doc.activeHistoryState;
var rSize = Sizes[a].split('x');
doc.resizeImage(Number(rSize[0]), Number(rSize[1]), undefined, ResampleMethod.BICUBIC);
saveFile = new File(outputFolder + "/" + Name + Sizes[a].toString() +".png");
SavePNG(saveFile)
doc.activeHistoryState = savedState;
}
preferences.rulerUnits = startRulerUnits;
};
function SavePNG(saveFile){
pngSaveOptions = new PNGSaveOptions();
activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
}[/CODE]