B
- Bobb -
XP SP2 and could use a little advice/help. Thanks.
I have an old file called DEFRAG.BAT, that simply consists of:
defrag y: -f >"d:\defragY.txt"
defrag c: -f> "d:\defragC.txt"
defrag d: -f>"c:\defragD.txt"
defrag e: -f>"d:\defragE.txt"
defrag f: -f >"d:\defragF.txt"
defrag g: -f >"d:\defragG.txt"
defrag v: -f >"d:\defragV.txt"
If I run it interactively it works fine. ( I usually start it and then run errands for the day)
If I add it to "Scheduled tasks" , it starts for a second then exits and no errorlog.
Why doesn't it complete when scheduled ? ( It starts the defragY.txt file then exits, so in the file I only get:
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc. )
and how to have it generate and errorlog ?
One other thing - any way to overwrite the old log file ( I usually delete them when I return from the errands)
PS When I run it manually, the defragY.txt file looks like this:
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.
Analysis Report
28.32 GB Total, 17.51 GB (61%) Free, 3% Fragmented (6% file fragmentation)
Defragmentation Report
28.32 GB Total, 17.51 GB (61%) Free, 0% Fragmented (0% file fragmentation)
I have an old file called DEFRAG.BAT, that simply consists of:
defrag y: -f >"d:\defragY.txt"
defrag c: -f> "d:\defragC.txt"
defrag d: -f>"c:\defragD.txt"
defrag e: -f>"d:\defragE.txt"
defrag f: -f >"d:\defragF.txt"
defrag g: -f >"d:\defragG.txt"
defrag v: -f >"d:\defragV.txt"
If I run it interactively it works fine. ( I usually start it and then run errands for the day)
If I add it to "Scheduled tasks" , it starts for a second then exits and no errorlog.
Why doesn't it complete when scheduled ? ( It starts the defragY.txt file then exits, so in the file I only get:
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc. )
and how to have it generate and errorlog ?
One other thing - any way to overwrite the old log file ( I usually delete them when I return from the errands)
PS When I run it manually, the defragY.txt file looks like this:
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International, Inc.
Analysis Report
28.32 GB Total, 17.51 GB (61%) Free, 3% Fragmented (6% file fragmentation)
Defragmentation Report
28.32 GB Total, 17.51 GB (61%) Free, 0% Fragmented (0% file fragmentation)