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.
Hello friends
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:
Thanks.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.
Hello friends
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:
- @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 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″
- goto end
- :adminREM ** 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 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″
- REM ** Do more stuff here **REM ** Blah, blah, blah……**
- :endexit
No comments:
Post a Comment