Re: Automation Clean Up
Tech-Archive recommends: Fix windows errors by optimizing your registry
"PP" <PP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BE6B69E8-159A-447B-95A8-5107332022CD@xxxxxxxxxxxxxxxx
> Hi Folk
>
> I'm sorry if this is a wrong alias
> Can somebody point me to some URL/code for this requirement
>
> What I'm trying to do is write a automated SCRIPT (C# or WMI either is OK)
> which will do the following every night
>
> 1. Clean the DISK using DISK CleanUP utility
> 2. Run DEFRAG
> Both needs to be run on 3 of my drives
>
> Any ideas?
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. Batch file
could look like this:
(
for %%D in (C: D: E:) do (
echo/cleaning up drive %%F
CleanUP /Y /O %%D
echo/defragging drive %%F
defrag %%F /f /v
)
) >"%~dpn0.log
/Al
.
Relevant Pages
- Re: XP Defrager
... rendering knows for a fact that fragmentation can cause enough delays to ... drives between each editing/rendering session in order to be sure the ... Video work is extremely disk intensive. ... It's a lot cheaper to just let it defrag in between. ... (microsoft.public.windowsxp.general) - Re: John Kelly -OT- Perfect Disk
... Just so I am sure on this, Offline defrag is a defrag ... during the boot sequence. ... On other drives it will look for something called as handle. ... exactly the same as forcing an offline defrag at avery boot. ... (microsoft.public.windowsxp.moviemaker) - Re: Hard drive does not stay defragged!
... Your free space at 17% is minimal and means that larger files can be ... Advanced and check the box before Compress contents to ... The Defrag seems to get to about 15%, then it ends, telling me it had ... My HD is a year old, 40 GB, partitoned into three drives. ... (microsoft.public.windowsxp.perform_maintain) - Re: xcopy stops working in batch file when I connect to machine using remote desktop connection
... The batch file runs, but the xcopy commands ... some reason the "path" changed after RDC. ... I RDC my desktop from another PC and then disconnect from my pc, ... Do not use mapped drives for background jobs. ... (microsoft.public.windowsxp.general) - Re: xcopy stops working in batch file when I connect to machine using remote desktop connection
... The batch file runs, but the xcopy commands ... some reason the "path" changed after RDC. ... I RDC my desktop from another PC and then disconnect from my pc, ... Do not use mapped drives for background jobs. ... (microsoft.public.windowsxp.general) |
|