Post: How to clean your PC in on click
10-04-2009, 05:58 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); 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 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..... **

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



:end
exit

+Rep If You Think This Post Was Helpful.
(adsbygoogle = window.adsbygoogle || []).push({});
10-07-2009, 12:38 AM #2
Zero Thunder
Climbing up the ladder
leeched You must login or register to view this content.

The following user thanked Zero Thunder for this useful post:

ZachFean
10-08-2009, 08:26 PM #3
Does it matter, the whole point of this section is to inform people that dont know
10-10-2009, 10:38 PM #4
A--p--p--l--e
An Orange Apple ???
.....
10-11-2009, 03:51 PM #5
Thats funny because i didn't get it from a ****ing link.
10-11-2009, 04:37 PM #6
A--p--p--l--e
An Orange Apple ???
.....
10-12-2009, 04:10 AM #7
Originally posted by e View Post
hey no need for the swearing ... just saying what a coincidence it is that you post something.. and its already been posted somewhere else


No it hasn't, thats the one thing i can't stand is when people tell me to stop doing something.
10-18-2009, 05:08 AM #8
Lol this may be a dumb question but...Would this work like CCleaner and would it be better??
10-18-2009, 08:44 AM #9
No its nothing like it.. all this does it clean the unwanted files off of your computer. It doesn't delete the files the "cant be deleted".
11-19-2009, 01:13 AM #10
mjkuser
OMGNEXTGEN
Nice man I use CCleaner though. Smile

The following user thanked mjkuser for this useful post:

LordOfSpoon™

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo