If I have more than one version of Java installed can I specify the version I want to kick a program off with via batch file, or do I have to change my environment variable? If
If you want to do it for a specific instance of a program why not specify the full path, e.g.
if "%1" == "6.20" ( 'C:\Program Files\Java\jdk1.6.0_20\bin\java.exe' -version
)