defrag shortcut

  • Thread starter Thread starter bill18
  • Start date Start date
B

bill18

Looking for a shortcut to defrag. Just want to double
click an icon and have the defrag run without pressing
enter.

Thanks
 
Click Start button>all programs>accessories>system tools. Right click on
disk deframenter. From the drop down menu select Create short cut. Another
short cut will appear below the disk defragmentor. This will be marked disk
derfragmentor 2. Right click on this and, from the drop down menu, select
Cut. Now right click on a vacant part of your desktop and select Paste. You
now have a short cut on your desktop.
 
I want it to run automatically. I do not want to have to
press enter or anything. This is what I used.
C:\WINDOWS\system32\defrag.exe c: -f

The purpose of getting all of these shortcuts (commands)
are to put them into one bat file so when a user double
clicks on it all of the tasks run. The user does not
have to remeber numerous steps. Yes, these are pretty
easy tasks however this will make them even easier.

Thanks
 
Sorry bill a slight misunderstanding. Don't quote me but i am not sure there
is a way of automating defrag. Maybe someone else know how to get round your
problem.

Once again my apologies
 
No problem. I may have not explained myself that well
the first time. I think I may have figured it out. This
is the command I used and it did defrag.

C:\WINDOWS\system32\defrag.exe c: -f

Now I have two questions.
(1) Is it harmful to defrag using this method.
(2) Is this correct defrag for windows XP? When looking
in System32 directory I came across defrag.exe and
dfrgfat.exe? What executable does the defrag console
(dfrg.msc) use?

Thanks
 
1. defrag.exe - It is perfectly safe to defrag using this method.

2. You should use defrag.exe. When defrag actually runs, it will run
dfrgfat.exe if the drive being defragmented is FATx and dfrgntfs.exe if the
drive being defragmented is NTFS.

The defrag console (drrg.msc) does the same thing. Runs dfrgxxx.exe based
on the file system being defragmented.

- Greg/Raxco Software
Microsoft MVP - Windows File System

Disclaimer: I work for Raxco Software, the maker of PerfectDisk - a
commercial defrag utility, as a systems engineer in the support department.

Want to email me? Delete ntloader.
 
Back
Top