@echo off :start rem Check to see if any version of Suitcase is currently running. tasklist /FI "IMAGENAME eq Suitcase.exe" | find /i "Suitcase.exe" if errorlevel 2 goto running if errorlevel 1 goto notrunning :running cls rem Warn the user. echo Suitcase is currently running. It will now be shut down. echo. echo To cancel this operation now, press Ctrl + C. echo. pause rem Quit out of Suitcase. tskill suitcase pause :quitting cls rem Give status. echo Suitcase is now being shut down. rem Wait here until Suitcase has finished quitting. tasklist /FI "IMAGENAME eq Suitcase.exe" | find /i "Suitcase.exe" if errorlevel 2 goto quitting if errorlevel 1 goto notrunning :notrunning cls rem Warn the user. echo Suitcase's database will now be moved into a "Moved Suitcase Database" folder, echo which will be created on your Desktop. Any Fonts or Sets that have been added echo in Suitcase 11 will be backed up to this folder, and removed from Suitcase. echo. echo If you would like to restore this data later on, please contact Extensis echo Technical Support for assistance: echo. echo http://www.extensis.com/support echo. echo To cancel this operation now, press Ctrl + C. echo. pause rem Un-comment the next line to delete Suitcase 11's Data folder instead of moving it to the Desktop. rem rd /s /q "%appdata%"\Extensis\Suitcase rem Rename Suitcase 11's Data folder and move it to the Desktop move "%appdata%\Extensis\Suitcase" "%userprofile%\Desktop\Moved Suitcase Database" rem Configure Suitcase 11 to offer to import the Suitcase 9 database, if it finds one. REG ADD HKCU\Software\Extensis\Suitcase\11\Preferences\UI\Dialogs /v "Confirm Database Import" /t REG_BINARY /d 00 /f rem Give status. cls echo Database reset. Starting Suitcase... rem If a Suitcase 11 shortcut exists in the All Users Start Menu, launch it. dir "%ALLUSERSPROFILE%\Start Menu\Programs\Extensis\Suitcase 11.0" | find /i "Suitcase.lnk" if errorlevel 2 start /d"%ALLUSERSPROFILE%\Start Menu\Programs\Extensis\Suitcase 11.0" Suitcase.lnk if errorlevel 1 goto launching1 pause :launching1 cls echo Database reset. Starting Suitcase... rem If a Suitcase 11 shortcut exists in the current user's Start Menu, launch it. dir "%USERPROFILE%\Start Menu\Programs\Extensis\Suitcase 11.0" | find /i "Suitcase.lnk" if errorlevel 2 goto launching2 if errorlevel 1 start /d"%USERPROFILE%\Start Menu\Programs\Extensis\Suitcase 11.0" Suitcase.lnk :launching2 cls echo Database reset. Starting Suitcase... rem If a Suitcase 11 executable exists in the default install folder, launch it. dir "%PROGRAMFILES%\Extensis\Extensis Suitcase 11" | find /i "Suitcase.exe" if errorlevel 2 goto launching3 if errorlevel 1 start /d"%USERPROFILE%\Start Menu\Programs\Extensis\Suitcase 11.0" Suitcase.lnk :launching3 cls rem Ask the user to launch Suitcase manually. echo Database reset. Please launch Suitcase. tasklist /FI "IMAGENAME eq Suitcase.exe" | find /i "Suitcase.exe" if errorlevel 2 goto launching3