I suggest you try the Javascript scripting. Once you get familiar, it's super easy to update so you get it going just like you want. E.g. with lots of files you can just run script over everything that is open. There was a good explanation in recent threa Custom Scripts (apparently I'm too dangerous post links)
For example saving the two files and closing it is just
[PHP]
var doc = app.activeDocument
var PNG_OPTIONS = new PNGSaveOptions()
var file = new File("C:\\Desktop\\png\\" + doc.name + ".png")
doc.saveAs (file, PNG_OPTIONS, false, Extension.NONE)
file.close()
file = null
var PSD_OPTIONS = new PhotoshopSaveOptions()
file = new File("C:\\Desktop\\psd\\" + doc.name + ".psd")
doc.saveAs(file, PNG_OPTIONS, false, Extension.NONE)
file.close()
file = null
doc.close(SaveOptions.DONOTSAVECHANGES)
doc = null
[/PHP]