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


Scripts



Link



更新履歴

取得中です。

FileBoolean > FileBoolean_N-Z


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

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