@echo off REM Clear-PCDMISRecent.bat - fix the PC-DMIS startup crash (NullReferenceException REM in RecentExecutedItem.LoadRealNode) caused by a stale Homepage "Recent REM Executed Files" list pointing at routine paths that don't resolve on this bay. REM REM Deletes the Recent (and Favorites) Homepage state for every user + PC-DMIS REM version; PC-DMIS rebuilds an empty list on next launch. REM REM Run AS ADMINISTRATOR. REM REM Clear-PCDMISRecent.bat (all users, Recent + Favorites) REM Clear-PCDMISRecent.bat -RecentOnly (keep Favorites) REM Clear-PCDMISRecent.bat -User ShopFloor setlocal set "HERE=%~dp0" powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%HERE%Clear-PCDMISRecent.ps1" %* echo. echo --------------------------------------------------------------- echo Done. Relaunch PC-DMIS - the recent-list crash should be gone. echo Log: C:\Logs\CMM\pcdmis-clearrecent-*.log echo --------------------------------------------------------------- pause