Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Manually run dfrgntfs.exe?

71 views
Skip to first unread message

Ant

unread,
Aug 19, 2012, 8:31:15 PM8/19/12
to
Hello.

I got annoyed with Windows XP Pro. SP3's dfrgntfs.exe that run in the
background after about ten minutes or so of idling. So I disabled it
through TweakUI. I tried to run dfrgntfs.exe, but it said "command line
operation of Disk Defragmenter is not supported." Is this the same disk
defragger through %SystemRoot%\System32\dfrg.msc?

Thank you in advance. :)
--
"Everything tastes better at a picnic... the ants, the sand,
everything." --unknown
/\___/\ Ant(Dude) @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.

VanguardLH

unread,
Aug 19, 2012, 10:01:32 PM8/19/12
to
"Ant" wrote:

> I got annoyed with Windows XP Pro. SP3's dfrgntfs.exe that run in the
> background after about ten minutes or so of idling. So I disabled it
> through TweakUI. I tried to run dfrgntfs.exe, but it said "command line
> operation of Disk Defragmenter is not supported." Is this the same disk
> defragger through %SystemRoot%\System32\dfrg.msc?

NOTE: Please be considerate and reduce your signature to 4 lines, or
less. Note that spamming in your signature is spamming in your
post. Since signatures are usually off-topic or ego fluff, it's
best to not bother using a signature at all.

As to your problem, I'm assuming in TweakUI that you went under its
General tab and disabled the "Optimize the disk while idle" option. As
I recall, that sets the following registry value:

Key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout]
Data: EnableAutoLayout
Value: 1 (enable defrag when idle)
0 (disable defrag when idle)

Obviously this won't affect any scheduled events in Task Scheduler to
run a defrag at some time, when the host is idle, when you login, or for
whatever triggers the scheduled event. I'm not sure that the above
setting also disables the boot-time optimization or the defragging done
during file indexing. The boot-time optimization is configured at:

Key: HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
Data: Enable
Value: Y (yes), N (no)

Apparently if you let Windows go indexing files, the indexing service
kicks off a defrag. So if you disable automatic loading and running of
the Indexing Service (set it to Manual) then you don't get the
consequential defrag operation.

And, yes, the front ends of defrag UI (%SystemRoot%\system32\dfrg.msc),
defrag.exe, and the Defrag Wizard when you use the Disk Tools all use
dfrgntfs.exe as their working process to do the defragmentation. You
don't run dfrgntfs.exe directly. You use one of the front ends to it.
Trying to interface to it directly through the command line is why you
get the "Command line operation of Disk Defragmenter is not supported."

41,397 dfrg.msc
25,088 defrag.exe
105,472 dfrgntfs.exe

The front end apps use the Windows defrag API but those system calls
have to find code somewhere to run the defrag functions.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363911(v=vs.85).aspx

Ant

unread,
Aug 19, 2012, 10:22:07 PM8/19/12
to
On 8/19/2012 7:01 PM PT, VanguardLH typed:
> As to your problem, I'm assuming in TweakUI that you went under its
> General tab and disabled the "Optimize the disk while idle" option.
> As I recall, that sets the following registry value:
>
> Key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout]
> Data: EnableAutoLayout
> Value: 1 (enable defrag when idle)
> 0 (disable defrag when idle)

This is at zero due to TweakUI's change I did earlier.


> Obviously this won't affect any scheduled events in Task Scheduler to
> run a defrag at some time, when the host is idle, when you login, or for
> whatever triggers the scheduled event. I'm not sure that the above

I don't have anything in my Task Scheduler.


> setting also disables the boot-time optimization or the defragging done
> during file indexing. The boot-time optimization is configured at:
>
> Key: HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
> Data: Enable
> Value: Y (yes), N (no)

I don't have a HKLM\SOFTWARE\Microsoft\Dfrg.


> Apparently if you let Windows go indexing files, the indexing service
> kicks off a defrag. So if you disable automatic loading and running of
> the Indexing Service (set it to Manual) then you don't get the
> consequential defrag operation.

I already had this indexing service disabled.


> And, yes, the front ends of defrag UI (%SystemRoot%\system32\dfrg.msc),
> defrag.exe, and the Defrag Wizard when you use the Disk Tools all use
> dfrgntfs.exe as their working process to do the defragmentation. You
> don't run dfrgntfs.exe directly. You use one of the front ends to it.
> Trying to interface to it directly through the command line is why you
> get the "Command line operation of Disk Defragmenter is not supported."
>
> 41,397 dfrg.msc
> 25,088 defrag.exe
> 105,472 dfrgntfs.exe
>
> The front end apps use the Windows defrag API but those system calls
> have to find code somewhere to run the defrag functions.
>
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa363911(v=vs.85).aspx

Thanks. :)
--

VanguardLH

unread,
Aug 20, 2012, 1:12:35 AM8/20/12
to
"Ant" wrote:

>> Key: HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
>> Data: Enable
>> Value: Y (yes), N (no)
>
> I don't have a HKLM\SOFTWARE\Microsoft\Dfrg.

Entries are needed only in the registry if they differ from accepted
defaults. Without this data item, the assumed value is Y (yes) which
means boot-time optimization is enabled. You have to create this entry
yourself if you want to change from the default (if missing) of Y to use
a value of N.

If missing, Windows assumes a value of Y.
If present, Windows uses the configured value.
0 new messages