(view source code of deldeadprofiles.bat as plain text)
@ECHO OFF
:: DelDeadProfiles, Version 1.00 for Windows NT:: Removes unused leftovers of corrupted profiles for the current user ID.:: If the current user profile is C:\WINNT\Profiles\userid.000 then both:: C:\WINNT\Profiles\userid and C:\WINNT\Profiles\userid.002 will be:: removed.:: Written by Rob van der Woude:: http://www.robvanderwoude.comCALL :CheckIfCorrupt %userprofile%
GOTO:EOF
:CheckIfCorruptFOR /D %%A IN (%~dpn1.*) DO CALL :DelDeadProfiles %%A %userprofile%
GOTO:EOF
:DelDeadProfilesif not [%~f1]==[%~f2] echo Deleting corrupted profile %~nx1 . . .
if not [%~f1]==[%~f2] rd /s /q %1
goto:EOF
page last modified: 2025-10-11; loaded in 0.0046 seconds