You talk about batch files and shortcuts, so I'm guessing you're on a Windows computer, not a Mac. I'm not sure where Java comes into it though. Do you want a batch file or a Java program? I'll move this to General Computing for now.