×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Defrag not working

One way by jnicks
Posted: 9 Sep 02

Various approaches to getting Defrag to work are not so hot, you can tell by the discussion.  SAFE mode is the best, but of course it trashes your desktop.  

Personally I think it is MSTASK that is writing things to C: that is trashing DEFRAG, but any program that periodically writes to the drive being defragged will make idiot defrag restart.

RegHakr had a good one, in Thread615-144489 RegHakr pointed out

    To defragment all your hard drives/partitions with no overhead (background programs running or TSRs/VXDs loaded), change to the \Tools\Mtsutil folder on your Win98 Setup cd-rom, and right-click on Defrag.inf. Select Install.

    This will create a one-time entry (DEFRAG.EXE /ALL) under this Registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesOnce

    Defrag will start automatically next time you boot, before the login prompt, therefore before any other program loads.


An easy way to package this and without digging up the CD is to make a file, call it DEFRAG.REG, you can snip it...


REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
@="defrag /all /noprompt"


If you put it anywhere, say C:\stuff\defrag.reg, then the next time you want to defrag you just explorer to it and click-click.  Reboot and Defrag will run  before a lot of windows mud is loaded and perhaps Defrag will work.  Worth a try.

Of course you can make a bat file


regedit c:\stuff\defrag.reg


It is easy.


Back to Microsoft: Windows FAQ Index
Back to Microsoft: Windows Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close