Утилита для поиска и/или удаления старых файлов и папок. / Outdated files removal tool.: .DESCRIPTION

Русский оригинал Перевод на английский

Сожалеем, но текст оригинала доступен только зарегистрированным пользователям.

Search and remove old files or folders.

TEH3OP 28.10.15 в 19:59

0

.DESCRIPTION
This script searchs and removes outdated files or forlders with all content. To determine the "age" of a file/folder can be used different techniques: analysis of the file attributes (last access time, last write time, creation time), parsing a file name to extract timestamp or the number of a file.

TEH3OP 28.10.15 в 22:20

0

To determine which files (folders) is out-of-date used retention conditions specified in script parameters. Note that if specified script parameters will lead to removing all input files, exception will be thrown.

TEH3OP 28.10.15 в 22:54

0

.PARAMETER iaPath
Path list. Relative and avsolute paths are permitted.

TEH3OP 30.10.15 в 21:48

0

.PARAMETER iaFSItem
List of the [IO.FileSystemInfo] objects.

TEH3OP 19.01.16 в 00:35

0

.PARAMETER iDirPath
Alias : Dir
Path to the input directory that need to clean.
To obtain a list files the gci command will be used.

TEH3OP 30.10.15 в 22:29

0

.PARAMETER iAction
Alias : A
Action that will be performed. Valid values are:

TEH3OP 30.10.15 в 22:32

0

* 'List', 'L'
Return the list of filenames that are determined as old. [String[]].

TEH3OP 30.10.15 в 22:36

0

Return the list of objects with information about files that are determined as old. [psobject[]]

TEH3OP 30.10.15 в 22:44

0

* 'Remove', 'R'
Remove files that are determined as old. No output.
In this mode at least one of iRetentionCnt, iRetentionPeriod, iRetentionLenTot parameters is required.

TEH3OP 30.10.15 в 22:55

0

.PARAMETER iSortBy
Alias : S
Default: 'Name'
The sorting algorithm for the input collection of files.. Valid values are:

TEH3OP 30.10.15 в 22:58

0

* 'Name' - sort by filename (without path) or by timestamp or number parsed from filename.
To setup filename parse options use parameters iNamePattern and iNameFormat.

TEH3OP 01.11.15 в 23:26

0

* 'CTime' - sort by the file creation time.
In this mode parameters iNamePattern, iNameFormat and iNameNotMatchedTreatAs are prohibited.

TEH3OP 02.11.15 в 19:41

0

* 'ATime' - sort by the file last access time.
In this mode parameters iNamePattern, iNameFormat and iNameNotMatchedTreatAs are prohibited.

TEH3OP 02.11.15 в 19:41

0

* 'MTime' - sort by the file modification time.
In this mode parameters iNamePattern, iNameFormat and iNameNotMatchedTreatAs are prohibited.

TEH3OP 02.11.15 в 19:44

0
Минутку...