Make A Batch File To Clean UR PC!!, All In One!!

Hello friends
Can any one pl edit this file for me.
The problem is when i reinstall windows, my id changes from
admin to admin.windows or administrator.whatever
I want %% to be used so that the batchfile can locate the
Windows XP directory and my documents and settings folder.

Any help will be appreciated.
*********************************************
@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

ইঞ্জিনিয়ার ছাত্র ছাত্রীদের প্রাক্টিকাল কাজ করার জন্য সকল ধরনের ইঞ্জিনিয়ারিং প্রোডাক্ট স্বল্প মূল্যে ঘরে বসে পেতে এখনি ভিজিট করুন উপকরণ ডট কমে। ইঞ্জিনিয়ার ছাত্র ছাত্রীরা একবার হলেও এই ওয়েবসাইটি দেখে আসুন। এখানে ক্লিক করুন www.upokoron.com

Write Your Comments

comments

Leave a Reply