Subj : CMDTIME To : Bob Swift From : Robert Bull Date : Sun Mar 23 2003 09:27 pm Hello, Bob; 23 Mar 03 10:20, Bob Swift wrote to Robert Bull: BS> able to throw something together in C. What platform (operating BS> system) are you looking for? I'm currently using DOS, but a DOS box under Win95/98 or "better" would be nice. BS> Also, can you email me the portion of the docs showing the command BS> syntax, options, and return codes (along with any "enhancement" BS> suggestions)? That way, if I do develop something it should be pretty BS> much a "drop in" replacement. Thanks. Here is the _entire_ doc; ======================[ BEGIN QUOTE ]====================== CMDTIME [1.00/Mar 13 1989] Copyright 1989 by Scott Dudley (1:148/314) Command-line syntax error: CMDTIME is a program which translates dollar-sign options on the command- line to values based on the current time/date, and then execute the given command. The following options will be translated according to the current date: $a - The abbreviated weekday name $A - The full weekday name $b - The abbreviated month name $B - The full month name $c - Standard date and time string (mm-dd-yy hh:mm:ss) $d - Day-of-month as an integer (01-31) $H - Hour, in the range of 00-23 $I - Hour, in the range of 01-12 $j - Day-of-year as an integer (001-366) $m - Month as an integer (01-12) $M - Minute as an integer (00-59) $p - Local AM or PM as a string $S - Second as an integer (00-59) $U - Week-of-year, Sunday being the first day (00-52) $w - Weekday as an integer (0-6), Sunday being 0 $W - Week-of-year, Monday being the first day (00-52) $x - Standard date string (mm-dd-yy) $X - Standard time string (hh:mm:ss) $y - Year as an integer w/o century (00-99) $Y - Year, including century as an integer $Z - Time zone (Must have TZ environment variable defined) $$ - The dollar sign Please notice that all options are case-sensitive, and if you wish to enter a dollar sign in the command-line, you must specify it twice or else it will be interpreted as one of CMDTIME's internal options. =======================[ END QUOTE ]======================= Main enhancement I'd like is the ability to use Win95/98 LFNs, i.e., quite long concatenations of the above tokens. Current version is limited to 8.3 file names, I think. Thanks, Robert. --- GoldED 3.00.Beta2+ * Origin: The Luminous Void (2:250/501.4) .