DIGIT-ARC read-only archive · snapshot: July 23, 2026

Save two seconds - Speed Boot

4 posts · originally from https://geek.digit.in/community/threads/save-two-seconds-speed-boot.10495/

expertno.1
expertno.1 Original post #1
May 29, 2005 at 10:06 AM
I found that creating a script to run on shutdown that deletes the temp folder and history shaved 2.5 seconds on my boot time, down do 10.5 secs.

Create a batch file by doing the following:


1) Open notepad and enter the following lines:

RD /S /q "C:\Documents and Settings\"UserName without quotes"\Local Settings\History"
RD /S /q "C:\Documents and Settings\Default User\Local Settings\History"
RD /S /q "D:\Temp\" <--"Deletes temp folder, type in the location of your temp folder"



2) Save the fily and then rename is something like deltemp.bat



3) Now click Start, Run and type in gpedit.msc --->Computer Configuration --->Windows Settings --->Scripts and double click on Shutdown --->Click Add and find the batch file you created and press ok to set the script
Biplav
Biplav #2
May 29, 2005 at 10:11 AM
dude gpedit.msc doesnt open from run in win xp home.
D
dinesh_singh #3
May 29, 2005 at 10:23 AM
but it will open in xp pro
saROMan
saROMan #4
May 29, 2005 at 11:51 AM
well bud....i wonder..if u del these folders on shutdown...so all the garbage wll b deleted w it....BUT ..at bootup these folders wll b created..again...so wil it increse the bootup time OR decrese the boot time ???


also if u add

RD /S /q "C:\Documents and Settings\"UserName without quotes"\Local Settings\History\*"

so only the garbage files wll b deleted.....correct me if i am wrong.....