Defragment Boot Files - Create Shortcut

ByLine
How to Create a Defragment Boot Files Shortcut in Vista
Synopsis
This will show you how to create a Defragment Boot Files shortcut so you can manually defrag the boot files when you want to without having to restart the computer.
How to Create a Defragment Boot Files Shortcut in Vista


information   Information
This will show you how to create a Defragment Boot Files shortcut so you can manually defrag the boot files on the C: drive when you want to without having to restart the computer.
Tip   Tip
To enable or disable the defrag of boot files at the startup or restart of Vista automatically, see: How to Enable or Disable Defrag of Boot Files at Startup in Vista




STEP ONE
To Create the Shortcut

Through a Download:
1. Click on the Download button below to download the file below.​
Defragment_Boot_Files.zip
download

2. Click on Save and save it to the Desktop.​
3. Right click on the downloaded .zip file and click on Open.​
4. Click on Allow in the UAC prompt.​
5. Extract the Defragment Boot Files shortcut to the desktop.​
6. Place the shortcut where you would like to use it at.​
7. When done, you can delete the downloaded .zip file if you like.​
8. Go to the STEP TWO section below.​

The Manual Way:
1. Right click on a empty area of the desktop.​
2. Click on New and Shortcut.​
3. Copy and paste the location belowin the location field. (See screenshot below step 4)​
C:\Windows\System32\Defrag.exe -b %SystemDrive%

4. Click on the Next button.​
Step1.jpg

5. Type Defragment Boot Files for the name. (See screenshot below step 6)​
NOTE: You can name it anything you would like though.
6. Click on the Finish button.​
Step2.jpg

7. Place the shortcut where you would like to use it at.​
8. Go to the STEP TWO section below.​





STEP TWO
How to Use the Shortcut

1. Right click on the Defragment Boot Files (on desktop) shortcut and click Run as administrator. (See screenshot below)​
NOTE: If you do not click Run as administrator, the shortcut will not work and you will only see a quick flash of the command prompt instead.​
Run_as_administrator.jpg

2. Click on Continue in the UAC prompt.​
3. You will now see this command prompt window open. (See screenshot below)​
NOTE:
A) This command prompt window will close on it's own when the defrag of the boot files is done. It will usually only take just a few minutes or so to finish.​
B) If you need or want to stop it, then click on the command prompt window and press Ctrl+C. The command prompt will close soon after.​
Command_Window.jpg

That's it,
Shawn


 
Last edited:
Shawn Brink

Comments

does this actually ONLY defrag the boot files or just defrag the drive?

how come this isnt a very popular tweak , this is only site I can find it on but yet its probably one of the best Vista tweaks?

does this work with readyboot? (not readyboost)
 
thanks

i run this and it spent 10 minutes defragging? surely that cant be right if its just boot files and it does this auto every boot?
 
Not sure why it does take longer, but i would guess that it is because of it being done from within the OS and being allowed to completely finish.
 
Top