Ann, I use this .VBS from "Doug Knox" to defrag XP, and it works just great.
1) Copy this script and paste in Notepad
2) Save as 'defrag_all.vbs to your Desktop
3) Click on the VBS Icon and it will Run CMD and defrag ALL HD.
HTH,
Ed
Note: Make sure to copy all the below including the last sentence (Set
WshShell=Nothing)

'defrag_all.vbs - Defrags all hard disks - Can be run as a Scheduled Task
'� Doug Knox - 3/29/2002
'This code may be freely distributed/modified

Set WshShell = WScript.CreateObject("WScript.Shell")

   Dim fso, d, dc
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set dc = fso.Drives
   For Each d in dc
      If d.DriveType = 2 Then
 Return = WshShell.Run("defrag " & d & " -f", 1, TRUE)
      End If
   Next

Set WshShell = Nothing

----- Original Message -----
From: "Ann Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 2:43 PM
Subject: Re: PCWorks: Registry question


Clint, why can't I do that the regular way with XP?  It has a "none" thing
to click on.  I haven't tried it, as I always start in safe mode when I
defrag and that seems to cut off screen savers and most everything else.
Ann Parker


Jeff, what OS is this?  If it's 98xx and not XP, why not do
it the regular way?  Go to display properties, then open the
'screen saver' tab.  Set that to 'none', then click
'settings', then set monitor to never power down.
-Clint

God Bless Us All
Clint Hamilton, Owner
============= PCWorks Mailing List =================
Don't see your post? Check our posting guidelines &
make sure you've followed proper posting procedures,
http://pcworkers.com/rules.htm
Contact list owner <[EMAIL PROTECTED]>
Unsubscribing and other changes: http://pcworkers.com
=====================================================

Reply via email to