Defrag progress

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • abnrange
    No longer a forum member
    • Feb 2006
    • 346

    Defrag progress

    Hello,

    Is it possible to have defrag use a progress bar for status?

    We currently defrag (bat file) workstations once a month and would like to have some kind of status.

    Thanks
  • holtgrewe
    Indigo Rose Customer
    • Jul 2002
    • 779

    #2
    You could probably use a 'best guess' or 'swag' to establish your progress bar, based on an anticipated time to completion. The MicroSoft XP defrag (% completed) is mezmerizing to watch, and jumps huge amounts periodically; and MS Vista doesn't even show a status currently for defrag'ing (that I know of).
    A lot of this depends on the size of the drive and how much of the capacity was used...and of course which defragger (is that a word?) you use.

    That said, if you can estimate how log your defrag takes, you can set up your progress bar accordingly.

    Google is your friend...

    Comment

    • abnrange
      No longer a forum member
      • Feb 2006
      • 346

      #3
      We have 80gig drives that take about 15 minutes.

      How can I sent the progress bar accordingly?

      Code:
      nRange =0;
      Label.SetVisible("Progress1", true);
      Page.StartTimer(1000);
      
      Progress.SetCurrentPos("Progress1", 1000);
      Progress.SetVisible("Progress1", true);
      
      result = File.Run("c:\\windsows\\system32\\defrag.exe", "", "", SW_SHOWNORMAL, false);

      Comment

      Working...
      X