ZD
ZDate
Purpose: Set and adjust a file's timestamp.Author: Kim Henkel
License: Freeware
Mode: Console
Download: zd.zip (18 Kb)
ZDate can be easily invoked from ZTree using either Ctrl-Batch, or from an F9 Application Menu script to
modify the timestamps of the currently tagged files.
An example F9 Application Menu script using it to modify the current file or all tagged files can be found here.
(NOTE: ZDate functionality was added to ZTreeWin in v1.61.79 Jan 12, 2008 through the Newdate command's F5 Mode option. This made the F9 menu script obsolete.)
ZDate continues to be useful in Ctrl-Batch files to capture tagged file timestamps to a batch script for restoring them later, or for transferring them to another set of same-named files.
Example Ctrl-Batch Line Mask: ZD %d %4.%5
ZDate v1.2d -:- Copyright (c) Zedtek, Inc. 2007
Usage: ZD [/A] [/DMY|/YMD] [/E] [/CREATE:|/ACCESS:]mm-dd-yyyy [hh:mm:ss[am/pm]] filename
ZD [/A] [/E] [+/-d|m|y][+/-h|n|s] filename
Updates Last Written timestamp, unless you use /CREATE or /ACCESS switch
/A sets the archive bit for the file
/DMY specifies dd-mm-yyyy date format. Default is mm-dd-yyyy
/YMD specifies yyyy-mm-dd date format. Default is mm-dd-yyyy
/E round timestamp up to the next even second
Examples:
ZD /DMY 20-08-2006 filename.ext
ZD /YMD 2006-08-20 filename.ext
ZD /A 8-20-2006 filename.ext
ZD 8-20-2006 08:45:00 filename.ext
ZD /CREATE:8-20-2006 filename.ext
ZD /CREATE:8-20-2006 13:45:00 filename.ext
ZD /ACCESS:8-20-2006 filename.ext
ZD /ACCESS:8-20-2006 1:45:00pm filename.ext
ZD +5d+5h filename.ext
ZD +1d+2m+3y+1s+2n+5h filename.ext
ZD -1y-1h filename.ext
ZD +1h filename.ext
ZD -30n filename.ext
ZD /E filename.ext
ZD /E +1h filename.ext
Contributors to this page: ian
,
khenkel
and
JohnG
.
Page last modified on Friday 20 of November, 2009 00:47:21 EST by ian.
Category: ZTreeWin Utilities
