@echo off echo HP Smart Update Manager Repository cache delete script echo - echo Removing HP SUM repository cache files will make HP SUM take longer echo to run the next time it is used. echo - echo This script should not be run while HP SUM is running. echo - set /p ok="Are you sure you want to delete HP SUM repository cache files? [y or n] : " if "%ok%"=="y" goto oktodelete echo Exiting without deleting any files. goto end :oktodelete IF EXIST %temp%\hp_sum\RepositoryManager goto foundfiles echo No cache files found to delete. (%temp%\hp_sum\RepositoryManager) goto end :foundfiles echo Removing %temp%\hp_sum\RepositoryManager rmdir /s /Q %temp%\hp_sum\RepositoryManager :end pause