「FileBoolean/FileBoolean_A-E」の編集履歴(バックアップ)一覧はこちら
「FileBoolean/FileBoolean_A-E」(2010/12/17 (金) 14:40:20) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
原文: 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
Select all the directories that have a name which matches the STRING, and in these selected directories select all files and all subdirectories. The string may contain wildcard characters "-" (zero or more characters) or "?" (a single character).
- This boolean is similar to the - DirectoryPath boolean, but is somewhat faster because it only looks at directory names, not their full paths.
- The STRING should not contains slashes or backslashes. It is compared with the name of all the directories, and directory names do not contain slashes or backslashes.
- The function looks at all the hard link filenames of items (an item may have 2 or more names, totally different and even in different directories, but all referring to the same data). The logfile will show whatever name happens to be first, so it may appear as if the function has selected some wrong items. The function does not follow soft links.
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
Select all the directories that have a full path which matches the STRING, and in these selected directories select all files and all subdirectories. The string may contain wildcard characters "-" (zero or more characters) or "?" (a single character).
- This boolean is similar to the - DirectoryName boolean, but is somewhat slower because it looks at the full directory paths, not just the directory names.
- The STRING is compared with and must match the full path of the directories. Make sure that the mask also matches the drive letter. A directory path looks like this: "c:\windows\System32". Note that there is no trailing backslash.
- The function looks at all the hard link filenames of items (an item may have 2 or more names, totally different and even in different directories, but all referring to the same data). The logfile will show whatever name happens to be first, so it may appear as if the function has selected some wrong items. The function does not follow soft links.
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 (ここで取り扱っている内容の原文をコピーした日付です)
** (...)
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
表示オプション
横に並べて表示:
変化行の前後のみ表示: