This is how my RunOnceEx.cmd file @echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\001 /VE /D "Removing Items" /f REG ADD %KEY%\001 /V 1 /D "%systemdrive%\cleanup.cmd" /f This is how my Cleanup.cmd file looks like: @echo off RD /S /Q "%systemdrive%\Documents and Settings\Administrator\Favorites\Links" RD /S /Q "%systemdrive%\Documents and Settings\Administrator\Favorites\Favorites" RD /S /Q %systemdrive%\Drivers del /f /q %systemdrive%\Cleanup.cmd The drivers within C:\ is deleted, but the favourites and links folder still appears. I think it actually does delete those folders, but maybe after a restart, Windows reinstall those folders? Is something missing? Am I not understanding this properly?