CREATE YOUR OWN ANTIVIRUS FOR FREE
Hello friends these is aruj parajuli .The problem is when i reinstall windows, my id changes fromadmin to admin.windows or administrator.whateverI want %% to be used so that the batchfile can locate theWindows XP directory and my documents and settings folder.
Any help will be appreciated.
*********************************************
copy following code in notepad..and save as aruj.bat and run it
@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
0 comments:
Post a Comment
my pleasure in helping you