「FileBoolean/FileBoolean_A-E」の編集履歴(バックアップ)一覧に戻る
FileBoolean/FileBoolean_A-E - (2010/12/12 (日) 12:07:43) のソース
原文: 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