I have Pokemon ruby/sapphire they both say that my internal battery has run dry. would I still be able to transfer my Pokemon from them to Pokemon diamond/pearl?
Yes, you would still be able to. I've done so various times.