Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 07:38:04 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: how can i exlude 1 or more files or folders?  (Read 2072 times)
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #15 on: July 22, 2011, 09:23:03 pm »

You don't want MyDefrag to move the MFT and folders?
You can either do this by excluding them:
Code:
ExcludeFiles( SelectNtfsSystemFiles(yes)
  or Directory(yes) )
or (since these are processed first in the script) you can remove everything between FileActions and FileEnd.
Logged

Need help creating a script? Try MyDefrag Script Creator.
drugo
JkDefrag Hero
*****
Posts: 105


View Profile
« Reply #16 on: July 23, 2011, 05:41:47 am »

You don't want MyDefrag to move the MFT and folders?
You can either do this by excluding them:
Code:
ExcludeFiles( SelectNtfsSystemFiles(yes)
  or Directory(yes) )
or (since these are processed first in the script) you can remove everything between FileActions and FileEnd.

thanks Darlis
i create a script and i don't want (when i use this script) that my defrag moves my mft / folder and boot files
and for the file used to boot (prefecht? ) how can i esclude them
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #17 on: July 23, 2011, 06:57:43 am »

The boot files are listed in the NTOSBOOT*.pf prefetch file:
Code:
ExcludeFiles( SelectNtfsSystemFiles(yes)
  or Directory(yes)
  or ImportListFromProgramHints("NTOSBOOT*.pf")
Logged

Need help creating a script? Try MyDefrag Script Creator.
drugo
JkDefrag Hero
*****
Posts: 105


View Profile
« Reply #18 on: July 23, 2011, 03:28:11 pm »

The boot files are listed in the NTOSBOOT*.pf prefetch file:
Code:
ExcludeFiles( SelectNtfsSystemFiles(yes)
  or Directory(yes)
  or ImportListFromProgramHints("NTOSBOOT*.pf")
Darlis
maybe i did not understand
i used a your script , to optimaze the boot files of w7 , to boot more fast
(in short is a feature of xp , vista and w7 , and i'm sure you know it)
i would like to create a new script that does not move (exclude) these files optimazed

thanks
cheers
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #19 on: July 23, 2011, 03:38:45 pm »

Do you mean you don't want to move them at all or not move them if they are already optimized?

The feature you mean is Prefetch (or Superfetch in Vista/7) and it includes more files than just the boot files (as default). You can select all of these files with ImportListFromBootOptimize().
Logged

Need help creating a script? Try MyDefrag Script Creator.
drugo
JkDefrag Hero
*****
Posts: 105


View Profile
« Reply #20 on: July 23, 2011, 05:02:43 pm »

Do you mean you don't want to move them at all or not move them if they are already optimized?


well good question

 exclude them , in short don't want to move at all

may i ask a question ?
is there a way that mydefrag can detect if they are already optimized?


thanks !
cheers
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #21 on: July 23, 2011, 05:51:44 pm »

exclude them , in short don't want to move at all
Then this is what you need:
Code:
ExcludeFiles( SelectNtfsSystemFiles(yes)
  or Directory(yes)
  or ImportListFromBootOptimize() )

is there a way that mydefrag can detect if they are already optimized?
Yes and no. Wink It depends on what you have in the FileAction. If, for example, you have FastFill with the WithShuffling option and there is a gap somewhere inside the zone, then MyDefrag will shuffle the files above this gap. Without the option, it will consider the zone as optimized.
The same applies to the sorting actions. But there is a SkipBlock option that will skip most files if they are already sorted.
Logged

Need help creating a script? Try MyDefrag Script Creator.
Pages: 1 [2]
  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!