@echo off echo capture.bat saving Java System state in C:\env\%1 C: md! \env\%1 cd \env\%1 REM export Java region of registry regedit /E java.reg "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft" REM collect this version's java*.exe files copy C:\winnt\system32\java.exe copy C:\winnt\system32\javaw.exe copy C:\winnt\system32\javaws.exe REM collect the deployment.properties file for Java WebStart copy C:\Documents and Settings\Administrator\Application Data\Java\Deployment\deployment.properties dir REM -30-