How to make a Batch file to clean your PC

/
/
206 Views

How to make a Batch file to clean your PC

*********************************************
@echo off

if %username% == Administrator.WINDOWS goto admin

REM ** Delete User Files **

rmdir /S/Q “%systemdrive%Documents and Settings%username%Recent”
rmdir /S/Q “%systemdrive%Documents and Settings%username%Local SettingsTemp”
rmdir /S/Q “%systemdrive%Documents and Settings%username%Local SettingsHistoryHistory.ie5”
rmdir /S/Q “%systemdrive%Documents and Settings%username%Local SettingsTemporary Internet Filescontent.ie5”

goto end

:admin
REM ** Do some extra stuff here **
REM ** What ever you want….. **

ECHO You are a Administrator

rmdir /S/Q “%systemdrive%Documents and Settings%username%Recent”
rmdir /S/Q “%systemdrive%Documents and Settings%username%Local SettingsTemp”
rmdir /S/Q “%systemdrive%Documents and Settings%username%Local SettingsHistoryHistory.ie5”
rmdir /S/Q “%systemdrive%Documents and Settings%username%Local SettingsTemporary Internet Filescontent.ie5”

REM ** Do more stuff here **
REM ** Blah, blah, blah……**

:end
exit

Sign up for our newsletter to get Daily Updates

It is main inner container footer text