If its a batch files that you need... Windows supports both Java and VBscript.... WSH as host...

Base on your requirements... VB script could do the Job using send keys... I just dont know how to do it in Java... =)

It will just comes down to you in which language you are comfortable with... =)