PowerRename

Search forReplace withDescription
(.*).png foo_$1.png Prepends "foo_" to the existing file name for PNG files
(.*).png $1_foo.png Appends "_foo" to the existing file name for PNG files
(.*) $1.txt Appends ".txt" extension to existing file
(^\w+\.$)\|(^\w+$) $2.txt Appends ".txt" extension to existing file name only if it does not have an extension
(\d\d)-(\d\d)-(\d\d\d\d) or (\d{2})-(\d{2})-(\d{4}) $3-$2-$1 Move numbers in the filename: "29-03-2020" becomes "2020-03-29"
^(.{n})(.*) or (.*)(.{n})$ $1foo$2 Insert "foo" n characters from the beginning or the end, respectively
^.{n} or .{n}$ nothing Trim n characters from the beginning or the end, respectively

 

 

Replace using file creation date and time

The creation date and time attributes of a file can be used in the Replace with text by entering a variable pattern according to the table below. Selecting the tool-tip in the Replace with field allows you to view and select from the supported patterns.

Variable patternExplanation
$YYYY Year, represented by a full four or five digits, depending on the calendar used.
$YY Year, represented only by the last two digits. A leading zero is added for single-digit years.
$Y Year, represented only by the last digit.
$MMMM Name of the month.
$MMM Abbreviated name of the month.
$MM Month, as digits with leading zeros for single-digit months.
$M Month, as digits without leading zeros for single-digit months.
$DDDD Name of the day of the week.
$DDD Abbreviated name of the day of the week.
$DD Day of the month, as digits with leading zeros for single-digit days.
$D Day of the month, as digits without leading zeros for single-digit days.
$hh Hours, with leading zeros for single-digit hours.
$h Hours, without leading zeros for single-digit hours.
$mm Minutes, with leading zeros for single-digit minutes.
$m Minutes, without leading zeros for single-digit minutes.
$ss Seconds, with leading zeros for single-digit seconds.
$s Seconds, without leading zeros for single-digit seconds.
$fff Milliseconds, represented by full three digits.
$ff Milliseconds, represented only by the first two digits.
$f Milliseconds, represented only by the first digit.
posted @ 2023-03-24 13:36  fndefbwefsowpvqfx  阅读(50)  评论(0编辑  收藏  举报