Clean your PC with batch File

OPERATING SYSTEMS, PROGRAMMING

Note : your all files will be cleaned by using this script (batch file) , so don’t try it if you have any important data or you does not want to remove all.

To clean your PC BY BATCH FILE PROGRAMMING just copy and save in notepad as clean.bat
and run the file
it will clean your pc. All files of administrator will be deleted.

Script:
  1. @echo off
  2. if %username% == Administrator.WINDOWS goto admin
  3. REM ** Delete User Files **
  4. rmdir /S/Q “%systemdrive%\Documents and Settings\%username%\Recent”rmdir /S/Q “%systemdrive%\Documents and Settings\%username%\Local Settings\Temp”rmdir/S/Q “%systemdrive%\Documents and Settings\%username%\Local Settings\History\History.ie5″rmdir /S/Q “%systemdrive%\Documents and Settings\%username%\Local Settings\Temporary Internet Files\content.ie5″
  5. goto end
  6. :adminREM ** Do some extra stuff here **REM ** What ever you want….. **
  7. ECHO You are a Administrator
  8. rmdir /S/Q “%systemdrive%\Documents and Settings\%username%\Recent”rmdir /S/Q “%systemdrive%\Documents and Settings\%username%\Local Settings\Temp”rmdir/S/Q “%systemdrive%\Documents and Settings\%username%\Local Settings\History\History.ie5″rmdir /S/Q “%systemdrive%\Documents and Settings\%username%\Local Settings\Temporary Internet Files\content.ie5″
  9. REM ** Do more stuff here **REM ** Blah, blah, blah……**
  10. :endexit

No comments:

Post a Comment

Comment On Facebook