Subj : CMDTIME
To   : Bob Swift
From : Robert Bull
Date : Sun Apr 20 2003 06:47 pm

Hello, Bob;

06 Apr 03 17:49, Bob Swift wrote to Robert Bull:

BS> Right you are.  I found the problem and posted a corrected version at

I'm still not getting what I wanted/expected, but, I'm not sure that's to
do with CMDTIMEW.  It might be something to do with the way COMMAND.COM
passes parameters, or maybe, the way it deals with zero-byte files as I
used for testing (only just thought of that one).  Viz.:

dir:

SPAR001  HTM             0  04-14-03 10:12a spar001.htm

cmdtimew ren spar001.htm @[email protected]
File not found - spar001.htm

dir

SPAR001  HTM             0  04-14-03 10:12a spar001.htm


OTOH;

cmdtimew echo @[email protected]
2003-04-17_16:03:01.htm

as expected, and how I wanted to rename the file.


Also noticed the following behaviour WRT quote marks;

cmdtimew echo "@[email protected]"
2003-04-17_16:03:18.htm

cmdtimew echo ""@[email protected]""
2003-04-17_16:03:24.htm

cmdtimew echo """@[email protected]"""
"2003-04-17_16:03:31.htm"

i.e., if you want to echo one double-quote, you have to stack three.  Not
sure if that means much...


type nul > $.$

cmdtimew ren $.$ @X.htm

dir

2003-0~1 HTM             0  04-17-03  4:04p 2003-04-17.htm

which is OK, but I was after time as well.

Have I missed something?

    Thanks,

             Robert.

--- GoldED 3.00.Beta2+
* Origin: The Luminous Void (2:250/501.4)