mydefrag_jp @ ウィキ
このWikiはMyDefragのマニュアルの翻訳サイトです。


Scripts



Link



更新履歴

取得中です。

FileBoolean


※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

FileBoolean





原文: http://www.mydefrag.com/Scripts-FileBoolean.html
更新日: 2010/12/12 (ここで取り扱っている内容の原文をコピーした日付です)

(...)

Combine file booleans into a single boolean.

Syntax
( FILEBOOLEAN )

Example
FileSelect
  Size(10000000,0) and ( Name("-.zip") or Name("-.arj") )
FileActions
  ...
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



All

Select all the items (files, directories) that have not yet been placed in a previous zone.

Syntax
all

Example
FileSelect
  All
FileActions
  ...
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



Archive

Select all the items that have the "archive" attribute set (yes) or not set (no). Applications use this attribute to mark files for backup or removal.

Syntax
Archive(yes)
Archive(no)

Example
FileSelect
  # Select all the items that have the "archive" attribute.
  Archive(yes)
FileActions
  ....
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions




AverageFragmentSize

Select all the items that have an average number of bytes per fragment between the minimum (first number) and the maximum (second number). If the second number is zero then the maximum is infinity. For example, if an item is 300 bytes in size and has 3 fragments then it has an average fragment size of 100 bytes.

Syntax
AverageFragmentSize(NUMBER , NUMBER)

Example
FileSelect
  # Select all the items that have an average fragment size between 100 and 1000 bytes.
  AverageFragmentSize(100,1000)
FileActions
  ....
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



Compressed

Select all the items that have the "compressed" attribute set (yes) or not set (no). For a file the attribute indicates if the file is compressed by the build-in Windows compression. For directories the attribute is the default for new files (directories by themselves cannot be compressed).

Syntax
Compressed(yes)
Compressed(no)

Example
FileSelect
  # Select all the items that are compressed with the built-in Windows compression.
  Compressed(yes)
FileActions
  ....
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



CreationDate

Select all the items that were created between the minimum time (first parameter) and the maximum time (second parameter). If the first parameter is empty then the minimum time is the beginning of time. If the second parameter is empty then the maximum time is infinity.

   - The creation date can be newer than the last-changed date, for example when a file was downloaded, or unpacked from an archive (such as zip or arj). 

Syntax
CreationDate(DATETIME , DATETIME)

Example
FileSelect
  # Select all the items that were created less than 10 days ago.
  CreationDate(10 days ago,now)
FileActions
  ....
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



Directory

Select all the directories (yes) or all the other files (no).

  • Please note that this boolean does not select the files in a directory, but the directory itself. Directories and files are separate entities.
  • Directories cannot be moved (defragmented, optimized) on FAT32 volumes. This is a known limitation of the Windows defragmentation API and not a bug in MyDefrag.
  • Moving directories is slower than moving files of the same size, presumably because Windows has to update indexes and links in the MFT.

Syntax
Directory(yes)
Directory(no)

Example
FileSelect
  # Select all the directories.
  Directory(yes)
FileActions
  ....
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



DirectoryName

STRINGにマッチする名前を持つディレクトリをすべて選択し、そのディレクトリ以下にあるすべてのファイルとサブディレクトリを選択します。
  • STRINGにはワイルドカードとして"*"(0文字以上の任意の文字)と"?"(1文字の任意の文字)を選択できます
  • STRINGにはスラッシュ・バックスラッシュ(および\マーク)を含めないでください。これはすべてのファイルのファイル名について比較しますが、このファイル名には(ファイルパスではないので)スラッシュなどが含まれていません。
  • この関数はすべてのハードリンク ファイル名を一つのアイテム(二つ名を持ち、同時に違う場所に存在するが、その実体は同じファイル)として扱います。ログファイルには最初に見つかった名前が載ります, so it may appear as if the function has selected some wrong items. この関数はソフトリンク(ジャンクション・シンボリックリンク)を追従しません。

Syntax
DirectoryName(STRING)

Example
FileSelect
  # Select everything in the "Program Files" directory.
  DirectoryName("Program Files")
FileActions
  ....
FileEnd

See also:
  • DirectoryPath
  • FileName
  • FullPath
  • FileSelect
  • FileBoolean
  • FileActions




DirectoryPath

STRINGにマッチするフルパスを持つディレクトリをすべて選択します、そしてそのディレクトリ以下にあるすべてのファイルとサブディレクトリを選択します。STRINGにはワイルドカードとして"*"(0文字以上の任意の文字)と"?"(1文字の任意の文字)を選択できます。

  • この条件構文はDirectoryName()とよく似ていますが、これはディレクトリ名ではなくフルパスで比較するために多少遅いです。
  • STRINGはディレクトリのフルパスと比較され、マッチするでしょう。(The STRING is compared with and must match the full path of the directories.) ドライブレターにマッチするようなマスクを確認してください。ディレクトリパスというのは"c:\windows\System32"といったような物のことです。バックスラッシュの追跡はしないことを覚えておいてください。(訳注:自信がないのでエロイ人お願いします。)
  • この関数はすべてのハードリンク ファイル名を一つのアイテム(二つ名を持ち、同時に違う場所に存在するが、その実体は同じファイル)として扱います。ログファイルには最初に見つかった名前が載ります, so it may appear as if the function has selected some wrong items. この関数はソフトリンク(ジャンクション・シンボリックリンク)を追従しません。

Syntax
DirectoryPath(STRING)

Example
FileSelect
  # Select everything in the "?:\Program Files" directory.
  DirectoryPath("?:\Program Files")
FileActions
  ....
FileEnd

See also:
  • DirectoryName
  • FileName
  • FullPath
  • FileSelect
  • FileBoolean
  • FileActions



Encrypted

Select all the items that have the "encrypted" attribute set (yes) or not set (no). For a file the attribute indicates if the file is encrypted by the build-in Windows encryption. For directories the attribute is the default for new files (directories by themselves cannot be encrypted).

Syntax
Encrypted(yes)
Encrypted(no)

Example
FileSelect
  # Select all the items that have the "encrypted" attribute.
  Encrypted(yes)
FileActions
  ....
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions
原文: http://www.mydefrag.com/Scripts-FileBoolean.html
更新日: 2010/12/12 (ここで取り扱っている内容の原文をコピーした日付です)

FileLocation

Select the items (files, directories) that are located in a specified area on the disk. The ARGUMENT specifies one of several options to choose from, the first NUMBER is the beginning of the area and the second NUMBER the end, both in LCN (Logical Cluster Number). If the first NUMBER is zero then the area begins at the beginning of the disk. If the second NUMBER is zero then the area ends at the end of the disk.

Syntax
FileLocation(ARGUMENT , NUMBER , NUMBER)

Argument
Possible values for ARGUMENT:
BeginOfFile 	Select files if the beginning of the file is inside the area.
EndOfFile 	Select files if the end of the file is inside the area.
EntireFile 	Select files that have all their data inside the area.
AnyPart 	Select files if any of their data is inside the area.
AnyCompleteFragment 	Select files if at least 1 complete fragment is inside the area.

Example
# Highlight files from the beginning of the disk up to LCN=10000.
SetFileColor(FileLocation(EntireFile,0,10000),all,255,255,255)

See also:
  • FileSelect
  • FileBoolean
  • FileActions



FileName

STRINGにマッチするファイル名を持つファイルやディレクトリといったアイテムすべてを選択します。
STRINGにはワイルドカートとして*と?(ry)を含められます。

  • STRINGにはスラッシュやバックスラッシュ(および\円マーク)を含めないでください。すべてのファイル名について比較しますが、このファイル名にはスラッシュなどは含まれません。
  • この関数はすべてのハードリンク ファイル名を一つのアイテム(二つ名を持ち、同時に違う場所に存在するが、その実体は同じファイル)として扱います。ログファイルには最初に見つかった名前が載ります, so it may appear as if the function has selected some wrong items. この関数はソフトリンク(ジャンクション・シンボリックリンク)を追従しません。

Syntax
FileName(STRING)

Example
FileSelect
  FileName("*.mp3")
FileActions
  ....
FileEnd

See also:
  • DirectoryPath
  • DirectoryName
  • FullPath
  • FileSelect
  • FileBoolean
  • FileActions




FragmentCount

Select all the items that have a number of fragments between the minimum (first number) and the maximum (second number). If the second number is zero then the maximum is infinity.

Syntax
FragmentCount(NUMBER , NUMBER)

Example
 FileSelect
   # Select all the items that have at least 3 fragments and at most 10 fragments.
   FragmentCount(3,10)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



Fragmented


Select all the items that are fragmented(yes) or not fragmented(no).

Syntax
 Fragmented(yes)
 Fragmented(no)

Example
FileSelect
 # Select all the fragmented items.
 Fragmented(yes)
FileActions
 ....
FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



FullPath

STRING1にマッチするフルパスを持つディレクトリをすべて選択します。また、そのディレクトリ以下でSTRING 2にマッチするすべてのディレクトリとサブディレクトリが選択されます。
STRING1/2にはワイルドカード"*" "?" (ry)が使用できます。

  • ドライブレターにもマッチするようにディレクトリマスクを書いてください。 ディレクトリパスとは "c:\windows\System32"のような物のことです。ノート: バックスラッシュは追跡しません。ただしルート(たとえば"C:\")に限りバックスラッシュを持ちます。
  • "*"(star)ワイルドカードはディレクトリデリミタの"\"(backslash)もマッチします。(訳注:ちょっと自信ないです)、The "*" (star) wildcard will also match the "\" (backslash) character, so it span's directories.
  • サブディレクトリにあるファイルもまた選択されます。たとえば 「FullPath("c:\Windows","*.exe")」というコマンドはWindowsフォルダの中の.exeファイルだけを選択しますが、"Windows\System32"フォルダやWindows以下のすべてのサブフォルダの.exeファイルも処理されます。
  • この関数はすべてのハードリンク ファイル名を一つのアイテム(二つ名を持ち、同時に違う場所に存在するが、その実体は同じファイル)として扱います。ログファイルには最初に見つかった名前が載ります, so it may appear as if the function has selected some wrong items. この関数はソフトリンク(ジャンクション・シンボリックリンク)を追従しません。
Syntax
 FullPath(STRING1 , STRING2)

Example
 FileSelect
   // Select all *.mp3 files in all "music" folders and subfolders.
   FullPath("*\music","*.mp3")
 FileActions
   ....
 FileEnd


 // How to include files in a directory but not it's subdirectories.
 FullPath("c:\windows","*") and not (FullPath("c:\windows\*","*"))

See also:
  • FileName
  • DirectoryName
  • DirectoryPath
  • FileSelect
  • FileBoolean
  • FileActions




Hidden

Select all the items that have the "hidden" attribute set (yes) or not set (no). Hidden items are not included by Windows in an ordinary directory listing.

Syntax
 Hidden(yes)
 Hidden(no)

Example
 FileSelect
   # Select all the items that have the "hidden" attribute.
   Hidden(yes)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions


ImportListFromBootOptimize
Select the files that are listed in the "%SystemRoot%\Prefetch\Layout.ini" file. Windows XP and Vista create a list of items (files, directories, streams, etc.) that are accessed when the computer boots. MyDefrag can use that list to place the items in a zone. If used in conjunction with the * SortByImportSequence function it will place the items in the order in which they are loaded when booting.

   * If an item was already placed in a previous zone then it will not be selected and will not be moved. For example, the default Optimize scripts first place the MFT, then the directories, and then the items used when booting. The MFT and the directories are used when booting, but are not moved to the boot optimization zone because they have already been placed in a previous zone.
   * If you have a multiboot environment then the disk(s) will be optimized for the currently booted Windows.
   * Boot optimization is not limited to the volume where Windows is installed. If Windows uses items on other volumes, then those other volumes will also be boot optimized. 

Syntax
 ImportListFromBootOptimize()

Example
 # Optimize the disks for faster booting.
 FileSelect
   ImportListFromBootOptimize()
 FileActions
   SortByImportSequence(Ascending)
 FileEnd

 Changing the list
 The "layout.ini" file is a standard Unicode text file and you can look at it with for example the Windows Notepad text editor. Microsoft (and I) feel that booting is finished when the desktop is visible and all programs have been started. The "layout.ini" file therefore lists all items that are used by Windows itself and by the first 32 programs that run after booting. The list is automatically updated by Windows, look at the date/time of the file to see when it was updated last. You can force an update with the following commandline.

 Rundll32.exe advapi32.dll,ProcessIdleTasks

 The list can contain some surprising items, files that you were not expecting to be accessed while booting. For example, Windows seems to scan lot's of folders when booting, perhaps it is looking for drivers or DLL's. The folders are listed in the layout.ini file, but the contents of the folders is not. Another example is that many programs contain their icon inside the main executable program. The executable will therefore be listed, not because the program was run when booting but because Windows needed to show the icon on the desktop. The same applies for other kinds of files, for example a big movie may end up in the list because you have a media player that is started in the background that does a quick check to see if the last played file is still there. Other background programs can do similar things.

 It's possible to change the list in several ways. The easiest way is to use the standard MyDefrag scripting commands. For example, to exclude all files larger than 100 megabytes you can do this:
 # Create zone with files that are used while booting and are smaller than 100Mb.
 FileSelect
   ImportListFromBootOptimize() and Size(0,100MB)
 FileActions
   SortByImportSequence(Ascending)
 FileEnd

Another way to change the list is by making a copy of the file, editing the file, and then using the MyDefrag * ImportListFromFile fileboolean to import the file. The advantage is that you will get a MyDefrag zone that changes very little. The disadvantage is that you have to do it all over again when something changes on the computer, for example when you install a new driver.

See also:
  • SortByImportSequence
  • FileSelect
  • FileBoolean
  • FileActions



ImportListFromFile

Select the items (files, directories) that are listed in the listfile.

  • The STRING is the full path to an item on disk.
  • The listfile is a flat text file, Unicode, UTF-8, or ASCII.
  • The listfile must contain a list of full paths, 1 path per text line. For example:
    • C:\WINDOWS\SYSTEM32\NTOSKRNL.EXE
    • C:\WINDOWS\SYSTEM32\PSHED.DLL
    • C:\WINDOWS\SYSTEM32\KDCOM.DLL
    • C:\WINDOWS\SYSTEM32\CLFS.SYS
  • Paths that do not exist (or invalid paths) are quietly ignored.
  • Folders are entities by themselves. If the listfile contains the name of a folder then only the folder will be selected, not the items in that folder or subfolders.
  • If the listfile contains the name of an item that has already been processed (placed in a previous zone) then the item will not be selected (ignored).
  • This is a fileboolean function and it only selects items. The FileActions will process the selected items, for example sort by name. The * SortByImportSequence fileaction will order the items in the same sequence in which they are listed in the listfile.

Syntax
ImportListFromFile(STRING)

Example
 # Select and sort items exactly how I want it.
 FileSelect
   ImportListFromFile("c:\users\jeroen\MyOptimizeList.txt")
 FileActions
   SortByImportSequence(Ascending)
 FileEnd

See also:
  • SortByImportSequence
  • FileSelect
  • FileBoolean
  • FileActions



ImportListFromProgramHints

Select the files that are listed in the "%SystemRoot%\Prefetch\*.pf" files.

Windows XP and Vista create a logfile for every program that is started, containing (amongst other things) a list of items (files, directories, streams, etc.) that are accessed during the first 10 seconds of program startup. The logfiles are called "hint" files and are used by the Windows prefetcher to optimize disk access. MyDefrag can analyze the hint files and create a zone that contains all the referenced files. The zone will by default be sorted so that the most used program is first in the zone, with it's files in the order in which they are accessed.

  • The STRING argument specifies which hint file(s) must be imported. Default is all the files in the "%SystemRoot%\Prefetch" folder. You can specify a wildcard "*" to match any character or "?" to match a single character. If the STRING contains a backslash ("\") then it is assumed to be a full path to a folder, to be used instead of the Windows prefetch folder.
  • Hint files older than 30 days are ignored (skipped).
  • The zone is sorted by how often programs have been started, the most started program first. This number is one of the statistics available in the hint files. Please note that a high number of startups does not necessarily mean that a program is important to the user.
  • If a file was already placed in a previous zone then it will not be selected and will not be moved. For example, the default Optimize scripts first place the MFT, then the directories, and then the items used when booting. The MFT and the directories are used when starting a program, but are not moved to the program-hints zone because they have already been placed in a previous zone.
  • The hint files do not list all files that belong to a program. Only the files that are accessed during the first 10 seconds of program startup.
  • Program hints are not limited to the volume where Windows is installed. If a program uses files on other volumes then those other volumes will also be optimized.
  • If you have a multiboot environment then the disk(s) will be optimized for the currently booted Windows.
  • The hint files change a lot. A zone based on these files therefore also changes a lot.

Syntax
 ImportListFromProgramHints(STRING)

Example
 # Optimize the disk for faster program startup.
 FileSelect
   ImportListFromProgramHints("*")
 FileActions
   SortByImportSequence(Ascending)
 FileEnd

See also:
  • SortByImportSequence
  • FileSelect
  • FileBoolean
  • FileActions



Largest

Select the largests items (size in bytes). The argument is the number of items to be selected.

Syntax
 Largest(NUMBER)

Example
 FileSelect
   # Select the 10 largest files on the disk.
   Largest(10)
 FileActions
   ....
 FileEnd

See also:
  • Smallest
  • FileSelect
  • FileBoolean
  • FileActions



LargestFragmentSize

Select all the items that have a largest fragment with a size (in bytes) between the minimum (first number) and the maximum (second number). If the second number is zero then the maximum is infinity.

Syntax
 LargestFragmentSize(NUMBER , NUMBER)

Example
 FileSelect
   # Select all the items that have a largest fragment between 100 and 1000 bytes in size.
   LargestFragmentSize(100,1000)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



LastAccess

Select all the items that have a last access time between the minimum time (first parameter) and the maximum time (second parameter). If the first parameter is empty then the minimum time is the beginning of time. If the second parameter is empty then the maximum time is infinity.

   * See the *  LastAccessEnabled fileboolean to test if Windows is configured to record (update) the last access times.
   * Some improperly programmed utilities cause a change in the last access time of all items on the disk when they scan the disk. Examples are virus scanners, backup programs, text indexers.
   * On FAT volumes the resolution of the last access time is 1 day. NTFS delays updates to the last access time by up to one hour. 

Syntax
LastAccess(DATETIME , DATETIME)

Example
 FileSelect
   # Select all the items that were accessed less than 10 days ago.
   LastAccessEnabled(yes) and LastAccess(10 days ago,now)
 FileActions
   ....
 FileEnd

See also:
  • LastAccessEnabled
  • FileSelect
  • FileBoolean
  • FileActions



LastAccessEnabled

Select the items if Windows is configured to record (update) the last access times. This fileboolean is designed to be used together with the * LastAccess fileboolean.

Windows XP and Vista have a setting to enable/disable the recording (updating) of the last access times of files. On Vista the default setting is not to record the last access times. You can enable or disable the Windows setting from a commandline with the "fsutil" command:
See current setting: fsutil behavior query disablelastaccess
Enable recording of last access time: fsutil behavior set disablelastaccess 0
Disable recording of last access time: fsutil behavior set disablelastaccess 1

Syntax
 LastAccessEnabled(yes)
 LastAccessEnabled(no)

Example
 FileSelect
   # Select all the items that were accessed less than 10 days ago.
   LastAccessEnabled(yes) and LastAccess(10 days ago,now)
 FileActions
   ....
 FileEnd

See also:
  • LastAccess
  • FileSelect
  • FileBoolean
  • FileActions



LastChange

Select all the items that were changed between the minimum time (first parameter) and the maximum time (second parameter). If the first parameter is empty then the minimum time is the beginning of time. If the second parameter is empty then the maximum time is infinity.

   * The last-changed date can be older than the creation date, for example when a file was downloaded, or unpacked from an archive (such as zip or arj). 

Syntax
 LastChange(DATETIME , DATETIME)

Example
 FileSelect
   # Select all the items that were changed less than 10 days ago.
   LastChange(10 days ago,now)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions
原文: http://www.mydefrag.com/Scripts-FileBoolean.html
更新日: 2010/12/12 (ここで取り扱っている内容の原文をコピーした日付です)

NOT

Logically negate (invert) a file boolean. If the boolean is true then the result is false, and if the boolean is false then the result is true.

Syntax
 not ( FILEBOOLEAN )

Example
 FileSelect
   not ( Name("*.zip") or Name("*.arj") )
 FileActions
   ...
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



NotToBeIndexed

Select all the items that have the "NotToBeIndexed" attribute set (yes) or not set (no). This attribute is used by the Windows content indexing service and indicates that the item is not to be indexed.

Syntax
 NotToBeIndexed(yes)
 NotToBeIndexed(no)

Example
 FileSelect
   # Select all the items that have the "NotToBeIndexed" attribute.
   NotToBeIndexed(yes)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions


Offline

Select all the items that have the "offline" attribute set (yes) or not set (no). This attribute is used by the Windows Remote Storage service and indicates that the file data is physically moved to offline storage.

Syntax
 Offline(yes)
 Offline(no)

Example
 FileSelect
   # Select all the items that do not have the "Offline" attribute.
   Offline(no)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



OR

Logical OR of two file booleans. The result is true if at least 1 of the booleans is true.

Syntax
 FILEBOOLEAN or FILEBOOLEAN
 FILEBOOLEAN | FILEBOOLEAN
 FILEBOOLEAN || FILEBOOLEAN

Example
 FileSelect
   Size(10000000,0) or LastAccess("","1 month ago")
 FileActions
   ...
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions


Readonly

Select all the items that are read-only (yes) or not read-only (no).

Syntax
 Readonly(yes)
 Readonly(no)

Example
 FileSelect
   # Select all the items that are read-only.
   Readonly(yes)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



SelectNtfsSystemFiles

Select all the NTFS system files. These files are usually not visible, but they exist on all NTFS disks. The function selects all the files that are in the root directory of the volume and have a name that begins with "$" (dollar sign), except for "$RECYCLE.BIN", and all files in the $Extend folder and it's subfolders.

   * This function is intended to be used together with the *  PlaceNtfsSystemFiles fileaction. 

Inode Filename Description
0 $MFT Master File Table - An index of every file.
1 $MFTMirr A backup copy of the first 4 records of the MFT.
2 $LogFile Transactional logging file.
3 $Volume Serial number, creation time, dirty flag.
4 $AttrDef Attribute definitions.
6 $Bitmap Contains volume's cluster map (in-use vs. free).
7 $Boot Boot record of the volume.
8 $BadClus Lists bad clusters on the volume.
9 $Quota [Windows NT only] Quota information.
9 $Secure Security descriptors used by the volume.
10 $UpCase Table of uppercase characters used for collating.
11 $Extend A directory for: $ObjId, $Quota, $Reparse, $UsnJrnl.
$Extend\$ObjId 	Unique Ids given to every file.
$Extend\$Quota 	Quota information.
$Extend\$Reparse 	Reparse point information.
$Extend\$UsnJrnl 	USN Journal.
$Extend\$RmMetadata 	Transactional data.

Syntax
 SelectNtfsSystemFiles(yes)
 SelectNtfsSystemFiles(no)

Example
 FileSelect
   # Select all the NTFS system files.
   SelectNtfsSystemFiles(yes)
 FileActions
   # Place the selected files, sorted by their full path.
   PlaceNtfsSystemFiles(Ascending,MftSize * 0.1)
 FileEnd

See also:
  • PlaceNtfsSystemFiles
  • ReclaimNtfsReservedAreas



Size

Select all the items that have a size in bytes between the minimum (first number) and maximum (second number). If the second number is zero then the maximum is infinity.

   * Sparse files can have a larger size than what they are actually using on the disk. 

Syntax
 Size(NUMBER , NUMBER)

Example
 FileSelect
   # Select all files with a size up to 10 gigabyte.
   Size(0,10000000000)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions

Smallest
Select the smallest items (size in bytes). The argument is the number of items to be selected.

Syntax
Smallest(NUMBER)

Example
 FileSelect
   # Select the 10 smallest files on the disk.
   Smallest(10)
 FileActions
   ....
 FileEnd

See also:
  • Largest
  • FileSelect
  • FileBoolean
  • FileActions



SmallestFragmentSize

Select all the items that have a smallest fragment with a size (in bytes) between the minimum (first number) and the maximum (second number). If the second number is zero then the maximum is infinity.

Syntax
 SmallestFragmentSize(NUMBER , NUMBER)

Example
 FileSelect
   # Select all the items that have a smallest fragment between 100 and 1000 bytes in size.
   SmallestFragmentSize(100,1000)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions



Sparse

Select all the items that are sparse (yes) or not sparse (no).

Syntax
 Sparse(yes)
 Sparse(no)

Example
 FileSelect
   # Select all the items that are sparse.
   Sparse(yes)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions


System

Select all the items that have the "system" attribute set (yes) or not set (no). This attribute is used by Windows to indicate items that are part of Windows, or that are used exclusively by Windows. This definition includes files such as the pagefile, "desktop.ini" files, just about everything in the Windows folder (including infrequently used stuff), temporary files, files in the recycle bin, and lot's of other stuff.

Syntax
 System(yes)
 System(no)

Example
 FileSelect
   # Select all the items that have the "System" attribute.
   System(yes)
 FileActions
   ....
 FileEnd

Tip: You can get a list of all the system files on the C: disk with the following Windows commandline:
dir /A:S /S c:

See also:
  • FileSelect
  • FileBoolean
  • FileActions


Temporary

Select all the items that have the "temporary" attribute set (yes) or not set (no). This attribute is used by Windows to indicate temporary items. The file system will attempt to keep all of the data in memory for quick access, rather than flushing it back to mass storage.

Syntax
 Temporary(yes)
 Temporary(no)

Example
 FileSelect
   # Select all the items that have the "Temporary" attribute.
   Temporary(yes)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions

Unmovable
Select all the items that MyDefrag could not move. MyDefrag initially assumes that all items on disk are movable. Only after the Windows defragmentation API has refused to move an item will an item be "unmovable".

Syntax
 Unmovable(yes)
 Unmovable(no)

Example
 FileSelect
   # Select all the items that have the "Unmovable" attribute.
   Unmovable(yes)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions





Virtual

Select all the items that have the "virtual" attribute set (yes) or not set (no).

Syntax
 Virtual(yes)
 Virtual(no)

Example
 FileSelect
   # Select all the items that have the "Virtual" attribute.
   Virtual(yes)
 FileActions
   ....
 FileEnd

See also:
  • FileSelect
  • FileBoolean
  • FileActions