Monday, April 3, 2017
Clean recent and temporary files in a single program
Clean recent and temporary files in a single program
Paste this coding in notepad and save it as .bat with any name
@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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment