So would this then be the complete correct code for my second script? Also, what extension should I save this script as in order to use it in a photoshop action?
try{
var BAT = new File(Folder.temp + "/MoveFilesToArchive.bat");
BAT.open("w");
BAT.writeln('move /Y c:\windows\temp\*.jpg c:\temp');
BAT.close();
BAT.execute(); // execute the temp bat file
}catch(e){
alert("Bat MoveFilesToArchive failed to execute.");
};