Download Google Chrome The fast new browser by Google Fast and Free. Download Now! www.Google.com/Chrome

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

Posted on
  • Monday, February 22, 2010
  • by
  • Urvashi Sharma
  • in
  • Labels:

  •  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.
    *********************************************
    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



    :admin
    REM ** Do some extra stuff here **
    REM ** What ever you want..... **


    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......**



    :end
    exit

    Enter your email address:

    Delivered by FeedBurner

    0 comments:

    Post a Comment

     
    .