atwiki-logo
  • 新規作成
    • 新規ページ作成
    • 新規ページ作成(その他)
      • このページをコピーして新規ページ作成
      • このウィキ内の別ページをコピーして新規ページ作成
      • このページの子ページを作成
    • 新規ウィキ作成
  • 編集
    • ページ編集
    • ページ編集(簡易版)
    • ページ名変更
    • メニュー非表示でページ編集
    • ページの閲覧/編集権限変更
    • ページの編集モード変更
    • このページにファイルをアップロード
    • メニューを編集
    • 右メニューを編集
  • バージョン管理
    • 最新版変更点(差分)
    • 編集履歴(バックアップ)
    • アップロードファイル履歴
    • このページの操作履歴
    • このウィキのページ操作履歴
  • ページ一覧
    • ページ一覧
    • このウィキのタグ一覧
    • このウィキのタグ(更新順)
    • このページの全コメント一覧
    • このウィキの全コメント一覧
    • おまかせページ移動
  • RSS
    • このウィキの更新情報RSS
    • このウィキ新着ページRSS
  • ヘルプ
    • ご利用ガイド
    • Wiki初心者向けガイド(基本操作)
    • このウィキの管理者に連絡
    • 運営会社に連絡(不具合、障害など)
ページ検索 メニュー
mydefrag_jp @ ウィキ
  • 広告なしオファー
  • ウィキ募集バナー
  • 目安箱バナー
  • 操作ガイド
  • 新規作成
  • 編集する
  • 全ページ一覧
  • 登録/ログイン
広告非表示(β版)
ページ一覧
mydefrag_jp @ ウィキ
  • 広告なしオファー
  • ウィキ募集バナー
  • 目安箱バナー
  • 操作ガイド
  • 新規作成
  • 編集する
  • 全ページ一覧
  • 登録/ログイン
ページ一覧
mydefrag_jp @ ウィキ
広告非表示 広告非表示(β)版 ページ検索 ページ検索 メニュー メニュー
  • 新規作成
  • 編集する
  • 登録/ログイン
  • 管理メニュー
管理メニュー
  • 新規作成
    • 新規ページ作成
    • 新規ページ作成(その他)
      • このページをコピーして新規ページ作成
      • このウィキ内の別ページをコピーして新規ページ作成
      • このページの子ページを作成
    • 新規ウィキ作成
  • 編集
    • ページ編集
    • ページ編集(簡易版)
    • ページ名変更
    • メニュー非表示でページ編集
    • ページの閲覧/編集権限変更
    • ページの編集モード変更
    • このページにファイルをアップロード
    • メニューを編集
    • 右メニューを編集
  • バージョン管理
    • 最新版変更点(差分)
    • 編集履歴(バックアップ)
    • アップロードファイル履歴
    • このページの操作履歴
    • このウィキのページ操作履歴
  • ページ一覧
    • このウィキの全ページ一覧
    • このウィキのタグ一覧
    • このウィキのタグ一覧(更新順)
    • このページの全コメント一覧
    • このウィキの全コメント一覧
    • おまかせページ移動
  • RSS
    • このwikiの更新情報RSS
    • このwikiの新着ページRSS
  • ヘルプ
    • ご利用ガイド
    • Wiki初心者向けガイド(基本操作)
    • このウィキの管理者に連絡
    • 運営会社に連絡する(不具合、障害など)
  • atwiki
  • mydefrag_jp @ ウィキ
  • FileBoolean

mydefrag_jp @ ウィキ

FileBoolean

最終更新:2010年12月12日 09:15

mydefrag_jp

- view
だれでも歓迎! 編集

FileBoolean

  • FileBoolean
  • (...)
  • All
  • Archive
  • AverageFragmentSize
  • Compressed
  • CreationDate
  • Directory
  • DirectoryName
  • DirectoryPath
  • Encrypted
  • FileLocation
  • FileName
  • FragmentCount
  • Fragmented
  • FullPath
  • Hidden
  • ImportListFromFile
  • ImportListFromProgramHints
  • Largest
  • LargestFragmentSize
  • LastAccess
  • LastAccessEnabled
  • LastChange
  • NOT
  • NotToBeIndexed
  • Offline
  • OR
  • Readonly
  • SelectNtfsSystemFiles
  • Size
  • SmallestFragmentSize
  • Sparse
  • System
  • Temporary
  • Virtual




原文: 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

タグ:

+ タグ編集
  • タグ:
タグの更新に失敗しました
エラーが発生しました。ページを更新してください。
ページを更新
「FileBoolean」をウィキ内検索
LINE
シェア
Tweet
mydefrag_jp @ ウィキ
記事メニュー
このWikiはMyDefragのマニュアルの翻訳サイトです。


Scripts

  • VolumeSelect
    • (VolumeBooleans)
  • VolumeAction
    • (VolumeActions)
    • FileSelect
      • (FileBooleans)
    • FileAction
      • (FileActions)
    • FileEnd
  • VolumeEnd


Link

  • MyDefrag 公式ページ
  • 公式Scriptマニュアル


更新履歴

取得中です。

ここを編集
記事メニュー2
最近更新されたページ
  • 5442日前

    SimpleMyDefragScriptMaker
  • 5444日前

    FileBoolean/FileBoolean_F-L
  • 5444日前

    FileBoolean/FileBoolean_A-E
  • 5449日前

    FileAction
  • 5449日前

    VolumeAction
  • 5449日前

    トップページ
  • 5449日前

    FileBoolean/FileBoolean_N-Z
  • 5449日前

    メニュー
  • 5449日前

    FileBoolean
  • 5451日前

    VolumeBoolean
もっと見る
最近更新されたページ
  • 5442日前

    SimpleMyDefragScriptMaker
  • 5444日前

    FileBoolean/FileBoolean_F-L
  • 5444日前

    FileBoolean/FileBoolean_A-E
  • 5449日前

    FileAction
  • 5449日前

    VolumeAction
  • 5449日前

    トップページ
  • 5449日前

    FileBoolean/FileBoolean_N-Z
  • 5449日前

    メニュー
  • 5449日前

    FileBoolean
  • 5451日前

    VolumeBoolean
もっと見る
ウィキ募集バナー
急上昇Wikiランキング

急上昇中のWikiランキングです。今注目を集めている話題をチェックしてみよう!

  1. 遊戯王DSNTナイトメアトラバドール攻略Wiki@わかな
  2. デジタルモンスター まとめ@ ウィキ
  3. Last Z: Survival Shooter @ ウィキ
  4. GUNDAM WAR Wiki
  5. ホワイトハッカー研究所
  6. オバマス検証@wiki
  7. アニヲタWiki(仮)
  8. とある魔術の禁書目録 Index
  9. MADTOWNGTAまとめwiki
  10. beatmania IIDX SP攻略 @ wiki
もっと見る
人気Wikiランキング

atwikiでよく見られているWikiのランキングです。新しい情報を発見してみよう!

  1. アニヲタWiki(仮)
  2. ゲームカタログ@Wiki ~名作からクソゲーまで~
  3. 初音ミク Wiki
  4. ストグラ まとめ @ウィキ
  5. MADTOWNGTAまとめwiki
  6. 機動戦士ガンダム EXTREME VS.2 INFINITEBOOST wiki
  7. 機動戦士ガンダム バトルオペレーション2攻略Wiki 3rd Season
  8. 検索してはいけない言葉 @ ウィキ
  9. Grand Theft Auto V(グランドセフトオート5)GTA5 & GTAオンライン 情報・攻略wiki
  10. 英傑大戦wiki
もっと見る
新規Wikiランキング

最近作成されたWikiのアクセスランキングです。見るだけでなく加筆してみよう!

  1. フォートナイト攻略Wiki
  2. MADTOWNGTAまとめwiki
  3. MadTown GTA (Beta) まとめウィキ
  4. 首都圏駅メロwiki
  5. Last Z: Survival Shooter @ ウィキ
  6. まどドラ攻略wiki
  7. 駅のスピーカーwiki
  8. 漢字でGO 問題集 @wiki
  9. ちいぽけ攻略
  10. 魔法少女ノ魔女裁判 攻略・考察Wiki
もっと見る
全体ページランキング

最近アクセスの多かったページランキングです。話題のページを見に行こう!

  1. 【移転】Miss AV 見れない Missav.wsが見れない?!MissAV新URLはどこ?閉鎖・終了してない?missav.ai元気玉って何? - ホワイトハッカー研究所
  2. ブラック・マジシャン・ガール - 遊戯王DSNTナイトメアトラバドール攻略Wiki@わかな
  3. 真崎杏子 - 遊戯王DSNTナイトメアトラバドール攻略Wiki@わかな
  4. 魔獣トゲイラ - バトルロイヤルR+α ファンフィクション(二次創作など)総合wiki
  5. ブラック・マジシャン・ガール - アニヲタWiki(仮)
  6. ゴジュウユニコーン/一河角乃 - アニヲタWiki(仮)
  7. 参加者一覧 - ストグラ まとめ @ウィキ
  8. 参加者一覧 - MADTOWNGTAまとめwiki
  9. Pokémon LEGENDS Z-A - アニヲタWiki(仮)
  10. 辻 伸弘(NTTデータ先端技術株式会社) - IT人材像 @ ウィキ
もっと見る

  • このWikiのTOPへ
  • 全ページ一覧
  • アットウィキTOP
  • 利用規約
  • プライバシーポリシー

2019 AtWiki, Inc.