A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » The Basics
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Manually run dfrgntfs.exe?



 
 
Thread Tools Display Modes
  #1  
Old August 20th 12, 01:31 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp
Ant[_3_]
external usenet poster
 
Posts: 873
Default Manually run dfrgntfs.exe?

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.
  #2  
Old August 20th 12, 03:01 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Manually run dfrgntfs.exe?

"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\Opt imalLayout]
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/libr...(v=vs.85).aspx
  #3  
Old August 20th 12, 03:22 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp
Ant[_3_]
external usenet poster
 
Posts: 873
Default Manually run dfrgntfs.exe?

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\Opt imalLayout]
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/libr...(v=vs.85).aspx


Thanks.
--
/\___/\ 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.
  #4  
Old August 20th 12, 06:12 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Manually run dfrgntfs.exe?

"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.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 10:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.