Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 10:42:05 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: several questions/comments and bugs  (Read 1682 times)
willemijns
JkDefrag Supporter
***
Posts: 11


View Profile
« on: March 15, 2010, 07:17:19 pm »

latest version used 4.2.9

Code:
14. ExcludeFiles(
 15. FullPath("C:\donotdefrag","*")
 19. and FullPath("C:\Documents and Settings\papa\Application Data\SecondLife\browser_profile\Cache","*")
 20. and FullPath("C:\Documents and Settings\papa\Local Settings\Application Data\Emerald","*")
 21. and FullPath("C:\Documents and Settings\papa\Local Settings\Application Data\Gladinet\cache","*")
 22. and FullPath("C:\Documents and Settings\papa\Local Settings\Temp","*")
 23. and FullPath("C:\Documents and Settings\papa\Local Settings\Temporary Internet Files","*")
 24. and FullPath("C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files","*")
 30. and FullPath("E:\donotdefrag","*"))
 34. VolumeSelect
 35.   CommandlineVolumes()
 36.   and Writable(yes)
 37.   and Mounted(yes)
 38. VolumeActions
 39.   FileSelect
 40.     all
 41.   FileActions
 42.     Defragment(Fast)
 43.     Defragment()
 44.   FileEnd
 45. VolumeEnd
18:59:12 Compiling the script.
18:59:12 Executing the script.

18:59:12       Please note that the Microsoft defragmentation API cannot move directories on FAT volumes.

> and file by files Huh?

Code:
18:59:35       Recherche de: C:\donotdefrag\*
18:59:36       Recherche de: C:\Documents and Settings\papa\Application Data\SecondLife\browser_profile\Cache\*
18:59:36       Recherche de: C:\Documents and Settings\papa\Local Settings\Application Data\Emerald\*
18:59:37       Recherche de: C:\Documents and Settings\papa\Local Settings\Application Data\Gladinet\cache\*
18:59:37       Recherche de: C:\Documents and Settings\papa\Local Settings\Temp\*
18:59:38       Recherche de: C:\Documents and Settings\papa\Local Settings\Temporary Internet Files\*
18:59:38       Recherche de: C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\*
18:59:40       Recherche de: E:\donotdefrag\*
18:59:41       Finished ExcludeFiles().
18:59:41     Chargement de la liste des fichiers non déplaçable
18:59:41       Processing: 'C:\PAGEFILE.SYS'
18:59:41         File is unmovable: 'C:\PAGEFILE.SYS'
18:59:41       Processing: 'C:\HIBERFIL.SYS'
18:59:41         File is unmovable: 'C:\HIBERFIL.SYS'
18:59:41       Processing: 'C:\donotdefrag\16011808.GHO'
18:59:41         File is movable: 'C:\donotdefrag\16011808.GHO'

> file is movable ? with an exclude part
> "15. FullPath("C:\donotdefrag","*")" sic !

Code:
18:59:41       Finished loading list of unmovable items.
18:59:41     Merging wrap-around fragments.
18:59:41       Looking at: C:\WINDOWS\I386\COMPDATA, 2 fragments
18:59:41       Looking at: C:\Documents and Settings\All Users\Application Data\Kaspersky Lab\AVP8\bases_rd, 8 fragments
18:59:41       Looking at: C:\WINDOWS\IE8, 3 fragments
18:59:41       Looking at: C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\0, 3 fragments
18:59:41       Looking at: C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\1, 3 fragments
18:59:41       Looking at: C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\2, 3 fragments

>  my "set" contains"
> APPDATA=C:\Documents and Settings\papa\Application Data
> HOMEPATH=\Documents and Settings\papa
> TEMP=C:\DOCUME~1\papa\LOCALS~1\Temp
> TMP=C:\DOCUME~1\papa\LOCALS~1\Temp
> USERNAME=papa
> USERPROFILE=C:\Documents and Settings\papa

> why MyD detect "PAPA" instead of "papa" Huh?

Code:
18:59:48     Updating list of unmovable files at: C:\Program Files\MyDefrag v4.2.9\MyDefrag.dat

> What is this list ?

Code:
18:59:48       Finished updating list of unmovable items.
18:59:48     Merging wrap-around fragments.
18:59:48       Found 0 items with wrap-around fragments.
18:59:48       Finished Scanning for items with wrap-around fragments.
18:59:48     Finished FileActions.
18:59:48   Finished VolumeActions.
18:59:48 Statistics after:

These items could not be moved:
Fragments   Bytes             Clusters     Name
----------- ----------------- -----------  ---------------
      1 732     1 273 479 168      77 727  C:\PAGEFILE.SYS
      1 206     1 273 548 800      77 732  C:\HIBERFIL.SYS
          3     2 146 435 072     131 008  C:\donotdefrag\16011808.GHO

> ok file is now unmovable ? sic ! i have noticed screensaver takes a lot
of time on this file to do nothing during 20 seconds....
« Last Edit: March 15, 2010, 07:19:17 pm by willemijns » Logged
Darlis
JkDefrag Hero
*****
Posts: 1709


View Profile WWW
« Reply #1 on: March 15, 2010, 07:54:18 pm »

Code:
...
18:59:12       Please note that the Microsoft defragmentation API cannot move directories on FAT volumes.

> and file by files Huh?
You want to know if MyDefrag can move files on a FAT volumes? Yes, it can.

> file is movable ? with an exclude part
> "15. FullPath("C:\donotdefrag","*")" sic !
MyDefrag first goes through all files that are listed in MyDefrag.dat (a list with unmovable files) and tries to move them, to see if they are now movable. Afaik, MyDefrag ignores the ExcludeFiles() statement at this point. If you don't want MyDefrag to process this list, use RememberUnmovables(no).

Code:
18:59:48     Updating list of unmovable files at: C:\Program Files\MyDefrag v4.2.9\MyDefrag.dat

> What is this list ?
It contains files MyDefrag couldn't move in the last run. Remembering these files makes the defrag/optimization process faster than finding out later, that (large) files are unmovable. MyDefrag finds unmovable files by trying to (unsuccessfully) move a file.

> ok file is now unmovable ? sic ! i have noticed screensaver takes a lot
of time on this file to do nothing during 20 seconds....
How much free space do you have on this volume? Maybe the file couldn't be moved due to lack of free space.
It is normal that the screensaver is slow because it runs on a low priority.
Logged

Need help creating a script? Try MyDefrag Script Creator.
willemijns
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #2 on: March 15, 2010, 08:47:37 pm »

Hello thanks to your answer

> You want to know if MyDefrag can move files on a FAT volumes? Yes, it can.

yep of course but this message let me a little afraid than no action are taken on this file ^^

> RememberUnmovables(no)

Thanks of this info, now added on my script Wink

> How much free space do you have on this volume? Maybe the file couldn't be moved due to lack of free space. It is normal that the screensaver is slow because it runs on a low priority.

37 GB Smiley low priority in a P4 3Ghz must quickly jump this file in a few ms instead of 20 seconds if it is really unmovable...

Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: March 16, 2010, 04:52:41 am »

> file is movable ? with an exclude part
> "15. FullPath("C:\donotdefrag","*")" sic !
Your ExcludeFiles() statement uses "and" to combine a bunch of FullPath() booleans. This is wrong, the result is that no files are excludes because there are no files that match all the FullPath masks. You have to use "or". See the ExcludeFiles manual page for an example.

Quote
> why MyD detect "PAPA" instead of "papa" Huh?
I do not see "PAPA" anywhere in your listings.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #4 on: March 16, 2010, 04:55:55 am »

MyDefrag first goes through all files that are listed in MyDefrag.dat (a list with unmovable files) and tries to move them, to see if they are now movable. Afaik, MyDefrag ignores the ExcludeFiles() statement at this point.
No. Files that are excluded with ExcludeFiles() are not tested by the MyDefrag.dat check.
Logged
willemijns
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #5 on: March 16, 2010, 08:48:35 am »

> file is movable ? with an exclude part
> "15. FullPath("C:\donotdefrag","*")" sic !
[/quote]
Your ExcludeFiles() statement uses "and" to combine a bunch of FullPath() booleans. This is wrong, the result is that no files are excludes because there are no files that match all the FullPath masks. You have to use "or". See the ExcludeFiles manual page for an example.

oh emro.nl/mydefraggui do an error Wink

Quote
> why MyD detect "PAPA" instead of "papa" Huh?
I do not see "PAPA" anywhere in your listings.
[/quote]

C:\>dir /S > w
C:\>find "PAPA" w > x
C:\>type x
---------- W
C:\>

neither me ^^ find /I "PAPA" (case unsensitive seaerch)  is ok
a windows API return error name parse ?


Logged
willemijns
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #6 on: March 16, 2010, 08:51:08 am »

No. Files that are excluded with ExcludeFiles() are not tested by the MyDefrag.dat check.

ok i can let RememberUnmovables(no) in my case ?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #7 on: March 16, 2010, 01:55:39 pm »

neither me ^^ find /I "PAPA" (case unsensitive seaerch)  is ok
a windows API return error name parse ?
Sorry, I do not understand the question.

Quote
ok i can let RememberUnmovables(no) in my case ?
Darlis mentioned that setting because he thought it would fix your problem. But you have a different problem and changing the setting will not help. So my advise is to use RememberUnmovables(yes). For more information see the RememberUnmovables manual page.
Logged
willemijns
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #8 on: March 16, 2010, 03:35:22 pm »

> Sorry, I do not understand the question.

my question is why "PAPA" is sometimes in uppercase ?

Code:
          4                 0           4  C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\3
          4                 0           4  C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\4
          3                 0           3  C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\5
          3                 0           4  C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\6
          4                 0           4  C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\7
          4                 0           4  C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\8
          4                 0           4  C:\Documents and Settings\PAPA\Local Settings\Application Data\Emerald\TEXTURES\9

Code:
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\papa>
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #9 on: March 16, 2010, 07:37:43 pm »

my question is why "PAPA" is sometimes in uppercase ?
I see your example, but I have no explanation as far as MyDefrag is concerned. It shows filenames exactly as they appear in the MFT/FAT, it does not (contain code to) change the case of filenames.
Logged
willemijns
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #10 on: March 16, 2010, 08:53:42 pm »

ok thanks of your answer.
Logged
Gary45
Newbie
*
Posts: 1


View Profile
« Reply #11 on: March 26, 2010, 04:17:21 pm »

Thank you for the useful information! I learned a lot
____________________
Cuban cigars
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!