Re: Can Cleanup & defrag work on all drives with one click?

From: Hemlock tree (Hemlock_at_trees.org)
Date: 02/07/04


Date: Sat, 07 Feb 2004 16:18:48 -0500

I am sure someone can tell you haw to set up a batch file to do that.

C:\Documents and Settings\Main>defrag /?
Usage:
defrag <volume> [-a] [-f] [-v] [-?]
  volume drive letter or mount point (d: or d:\vol\mountpoint)
  -a Analyze only
  -f Force defragmentation even if free space is low
  -v Verbose output
  -? Display this help text

C:\Documents and Settings\Main>

In a file edited by notepad
call it Dfrag.bat

It might look something like this:

defrag C:

defrag d:

defrag e:

defrag f:

anyone else have any suggestions?

start run dfrag

Hemlock

On Sat, 7 Feb 2004 16:54:49 +0800, "Old Timer"
<halfdead@optusnet.com.au> wrote:

>I do video editing on my machine & have 4 hard drives installed. Is it
>possible to set things up in XP so that with one click I can get Disk
>Cleanup & Defrag run on all drives?



Relevant Pages

  • Re: how to schedule MS degragmenter?
    ... manual way to run Defrag is to click to Start/Control ... you launch the tool via a command line plus ... I have a batch file called "DEFRAG_ALL.BAT" for example, ... Using Task Scheduler To Complete The Process ...
    (microsoft.public.windowsxp.basics)
  • Re: reg.exe help please
    ... "-f" to force it to defrag even if the free drive space gets low. ... to force overwriting the existing registry entry without prompting. ... and his reasoning is that this batch file is going to be put on everyone's ... I told him to just schedule a defrag but he wants to be sure to run chkdsk ...
    (microsoft.public.windowsxp.general)
  • Will computer sleep while batch file is running?
    ... I'm trying to set up a batch file that will defragment my computer, ... @ECHO OFF ... REM Defrag C: drive, with full defrag and forced in nec. ...
    (microsoft.public.windows.vista.general)
  • Re: Automate Exchange Database defrag
    ... You can create a batch file that will do it for you. ... net start msexchangeis ... >>I am looking for a way to automate exchange database> defrag. ... Dismount Store ...
    (microsoft.public.exchange2000.information.store)
  • Re: Automation Clean Up
    ... White a batch file that runs the cleanup utility and defrag on your three ... drives, and set up a scheduled task to run it every evening. ...
    (microsoft.public.windows.server.scripting)