Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo OFF
- TITLE User Profile Cleanup (For Rentals)
- echo Clearing User Profile: %USERPROFILE%
- echo Clearing Desktop...
- echo.
- FOR /D %%p IN ("%USERPROFILE%\Desktop\*") DO rmdir "%%p" /s /q
- md "%USERPROFILE%\Desktop\BackedUpShortcuts" 2> NUL
- move "%USERPROFILE%\Desktop\*.lnk" "%USERPROFILE%\Desktop\BackedUpShortcuts"
- del /f /s /q "%USERPROFILE%\Desktop\*"
- echo Clearing Documents...
- echo.
- del /f /s /q "%USERPROFILE%\Documents\*"
- FOR /D %%p IN ("%USERPROFILE%\Documents\*") DO rmdir "%%p" /s /q
- echo Clearing Downloads...
- echo.
- del /f /s /q "%USERPROFILE%\Downloads\*"
- FOR /D %%p IN ("%USERPROFILE%\Downloads\*") DO rmdir "%%p" /s /q
- echo Deleting Dropbox Folder...
- echo.
- rmdir /s /q "%USERPROFILE%\Dropbox"
- echo Clearing Music...
- echo.
- del /f /s /q "%USERPROFILE%\Music\*"
- FOR /D %%p IN ("%USERPROFILE%\Music\*") DO rmdir "%%p" /s /q
- echo Deleting OneDrive Folder...
- echo.
- rmdir /s /q "%USERPROFILE%\OneDrive"
- echo Clearing Pictures...
- echo.
- del /f /s /q "%USERPROFILE%\Pictures\*"
- FOR /D %%p IN ("%USERPROFILE%\Pictures\*") DO rmdir "%%p" /s /q
- echo Clearing Videos...
- echo.
- del /f /s /q "%USERPROFILE%\Videos\*"
- FOR /D %%p IN ("%USERPROFILE%\Videos\*") DO rmdir "%%p" /s /q
- echo.
- echo Done
- echo.
- echo -------------------------------------------------
- echo.
- echo Resetting Chrome...
- echo.
- RD /S /Q "%UserProfile%\AppData\Local\Google\Chrome\User Data"
- echo.
- echo.
- echo Finished!
- echo.
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement