@echo off set reg_file=ProE_Setup.reg set linespace=---------------------------------------------- echo %linespace% ver | find "Microsoft Windows [Version 6.1.7600]" > nul if %ERRORLEVEL% == 0 goto ver_xp echo This only works with Windows 7 echo This is NOT a Windows 7 OS!! echo %linespace% pause goto exit :ver_xp echo This file is made for Windows 7 only!!! echo It sets up purge as a Right Click option echo %linespace% echo Windows Registry Editor Version 5.00 > %reg_file% :Proepurge echo [HKEY_CLASSES_ROOT\Folder\shell\Purge] >> %reg_file% echo [HKEY_CLASSES_ROOT\Folder\shell\Purge\command] >> %reg_file% rem echo Please enter the path to where Pro/E is installed set /p proepath=i.e.(D:\ptc\proeWildfire5): set proepath=%proepath:\=\\% echo @="cmd.exe /C cd /d %%1 & call \"%proepath%\\bin\\purge.bat\" *" >> %reg_file% REM :DCFind REM echo [HKEY_CLASSES_ROOT\Directory\shell] >> %reg_file% REM echo @="none" >> %reg_file% :loadreg echo %linespace% echo Loading file into registry rem regedit %reg_file% echo Done loading file :delfile echo %linespace% echo Deleting temp registry file del /f /q %reg_file% echo. echo %linespace% :exit