======================[ BEGIN QUOTE ]======================
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.
=======================[ END QUOTE ]=======================
This is one of Scott Dudley's minor works, but its 2-digit year is
Y2K- broken (oddly enough, IIRC, its 4-digit year is OK).
Scott has released the sources to much bigger pieces of software;
does anyone know if he released this one too? I'd like to see it
both Y2K-corrected _and_ brought into the LFN era.
CMDTIME is a program which translates
does anyone know if he released this one too? I'd like to see
it both Y2K-corrected _and_ brought into the LFN era.
Not that I'm aware of. Certainly not with the Maximus 3.0 source code release, at least. But it sounds simple enough to rewrite.
Robert Bull wrote to All <=-
======================[ BEGIN QUOTE ]======================
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.
=======================[ END QUOTE ]=======================
able to throw something together in C. What platform (operating
system) are you looking for?
Also, can you email me the portion of the docs showing the command
syntax, options, and return codes (along with any "enhancement" suggestions)? That way, if I do develop something it should be pretty
much a "drop in" replacement. Thanks.
Robert Bull wrote to Bob Swift <=-
Here is the _entire_ doc;
======================[ BEGIN QUOTE ]======================
=======================[ 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.
Bob Swift wrote to Robert Bull <=-
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. I'll have a look, but it will likely be a few days before I get
a chance. (I'm currently job hunting.)
Done, and ready for testing. Can you (and anyone else that's
Done, and ready for testing. Can you (and anyone else that's
Robert Bull wrote to Bob Swift <=-
Done, and ready for testing. Can you (and anyone else that's
Apologies for (so far) a _very_ quick test, and for not having the
results to hand (my Fidonet machine at home is DOS/Win 3.1 only, the
ones used for testing are elsewhere - and I only poll once a week now). ATM CMDTIMEW seems to take only one token at a time. That is, if I
wanted to make an LFN containing the date, _and_ the time, and with an extension, it doesn't seem to know how to add them all together?
More another time - will try to remember to keep some screen shots etc.
Right you are. I found the problem and posted a corrected version at http://www.rsds.ca/misc.html for you (or anyone else) to download.
Right you are. I found the problem and posted a corrected version at
Robert Bull wrote to Bob Swift <=-
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.:
cmdtimew ren spar001.htm @X_@T.htm
File not found - spar001.htm
cmdtimew echo @X_@T.htm
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 "@X_@T.htm"
2003-04-17_16:03:18.htm
cmdtimew echo ""@X_@T.htm""
2003-04-17_16:03:24.htm
cmdtimew echo """@X_@T.htm"""
"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?
That's because DOS is confused and doesn't know what error message to display. The problem is that you're trying to rename the file to a
name which includes a colon. That's still an absolute no-no under
DOS.
And worked because it was displaying to the screen, not renaming with
an included colon.
Also noticed the following behaviour WRT quote marks;
I actually found that really interesting, and can (sort of) explain
it. When the original parameters are passed to CMDTIME, DOS will
of the user's control. For this reason, I've added two more
substitution options for single- and double-quotes. The new version
is available at http://www.rsds.ca/misc.html.
Robert Bull wrote to Bob Swift <=-
display. The problem is that you're trying to rename the file to a
name which includes a colon. That's still an absolute no-no under
DOS.
In the immortal words of Charlie Brown: Aaauuuggghhh!
OK, many thanks. Will pick it up and check ASAP. Paul Quinn in BATPOWER reports oddities, including with/without TZ set, but I had it set anyway (for Info-Zip) so haven't had any problems.
Bob Swift wrote to Robert Bull <=-
Good point. I should probably include something in the docs about that.
I think it is likely operating system dependent, but I think that all of the systems I tested it on here did have the TZ variable set. Thanks again for your help in testing and such.
Robert Bull wrote to Bob Swift <=-
I'm happy to report that 1.11, with the command line you gave me before, works perfectly :-) Many thanks! I have confess that with the
I see you and Paul got the other queries sorted out.
Thanks again,
I'm happy to report that 1.11, with the command line you gave me
before, works perfectly :-) Many thanks! I have confess that with
the immediate problem solved I haven't done much other testing, but
it looks like things should now be OK.
Paul Quinn wrote to Bob Swift <=-
I've been trying to grab 1.11 for quite a few days but the cgi script doesn't seem to complete the 'gotget', for me. :( It could be my browser. Is there any other method I may use to acquire a copy? Is it FREQ-able via IBN/ITN/IFC as well, please?
Bob Swift wrote to Paul Quinn <=-
It's also available via anonymous ftp from ftp.powerstationbbs.ca in the /pub/filegate/psn/pdncee area (or through any system that carries the
Excellent! It took a while, but it looks I may have finally got it
right. <grin>
know how I missed some of them. Just goes to show, that a second (or third) pair of eyes is a must.
<grin>>)It's also available via anonymous ftp from
ftp.powerstationbbs.ca in the /pub/filegate/psn/pdncee area (or
through any system that
carries the
Oops... Should be /pub/filegate/pdn/pdncee. (Darn fat fingers.
I'm gonna set up a DOS 4.01 (I think, 4.00 if you're real lucky)
system on the weekend and I'll do some testing then. Probably to no
14 May 03 18:24, Paul Quinn wrote to Bob Swift:
I'm gonna set up a DOS 4.01 (I think, 4.00 if you're real lucky)Isn't that the one that was a dog?
system on the weekend and I'll do some testing then. Probably
to no
Yep, it's the one where all the hoo-ha about DOS is hell started
from... from the DOS SHELL task-switcher thingie. Not a multi-tasker;
I built the machine up from spares on the weekend (still got enough
for another). The real testing dustoff starts tomorrow.
The very best DOS extender/multitasker I've known is Windows. 3.1 was quite handy on my old '286/1meg, where I could switch between 2
concurrent Win apps, one of which was usually a terminal proggie.
Ahh, those were the days... 2400bps modem, beernuts and hot coffee.[giggle]
The nodes in our net know how to keep their NC happy. I get all their rejects. Whoo!hoo!
AAMOI, did you ever have DV on DOS?
Ahh, those were the days... 2400bps modem, beernuts and hotFledgling - _I_ started with a 1200/75 modem :-))
coffee.[giggle]
.... When I enquired - in a local UK echo, I think - about
the shareware multitasker VMIX, I was told it was stable enough to
run a BBS, "but you wouldn't like it."
AAMOI, did you ever have DV on DOS?
Nope. I just never had the need for it. I knew my hardware's
limitations and didn't try anything stoopid, capability-wise, with the configs.
at one-third the cost, BTW. No, my first was a hand-me-down 300/1200 internal. Spent more time at 300 than the other.[giggle]
HEY... I remember discovering Vmix. I thought it was very slick.
But I think there were a couple of things that made it incompatible
with the pc (a 286, I think and with 2 meg ram) that I was using it
ISTR that 286s were more trouble than most, something to do with
memory addressing? I never had one, moving at work from an 8086 to a 386, and
starting at home with a 386. I didn't try very hard to get VMIX
working. It was probably above my level at the time, or maybe I just didn't RTFM!
"pushed" some resources into highmemory area. I also used a util
that could create a ram-drive. I forget the name of the util, but
unlike other ramdrive utils, this one allowed changing the size of
the ram drive on the fly and it even allowed removing and adding the ramdrive without rebooting!
I had a rather good-natured 286. Infact, with 2meg it was rather
could create a ram-drive. I forget the name of the util, but unlike
other ramdrive utils, this one allowed changing the size of the ram
drive on the fly and it even allowed removing and adding the ramdrive without rebooting!
Hello, Paul;
27 May 03 18:54, Paul Quinn wrote to Robert Bull:
The very best DOS extender/multitasker I've known is Windows. 3.1
was quite handy on my old '286/1meg, where I could switch between 2
concurrent Win apps, one of which was usually a terminal proggie.
AAMOI, did you ever have DV on DOS? I never used Win 3.1 much, but I don't much like Win95/Win98 for task-switching DOS, because it's
slow compared with DV and there's this sort of "visual clunk" as it writes the screens.
Ahh, those were the days... 2400bps modem, beernuts and hot
coffee.[giggle]
Fledgling - _I_ started with a 1200/75 modem :-))
I have used this one without any problems (for the Resize option):
TDSK23.ARJ 27,606 12-12-95 02:30:00
From the Author of the 2M Format package:
TDSK 2.3 (C) 1992-1995 Ciriaco Garcia de Celis
Resizeable RAM Disk, with EMS/XMS/Conventional
Fledgling - _I_ started with a 1200/75 modem :-))
Hmph. a new guy.<g> I still have my Hayes 300 bps Smartmodem. I *upgraded* to 1200 bps back around 1983 (memory fades). and to 2400
bps in the late 1980s.
Hello, Bob;
23 Jun 03 01:05, Bob Ackley wrote to Robert Bull:
Fledgling - _I_ started with a 1200/75 modem :-))
Hmph. a new guy.<g> I still have my Hayes 300 bps Smartmodem. I
*upgraded* to 1200 bps back around 1983 (memory fades). and to 2400
bps in the late 1980s.
Apologies for long-delayed reply, I've been away, and summer is always busy.
Oops :-)) Yes, I only started in about 1988. Never had to struggle
with one of those acoustic couplers, either.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,044 |
Nodes: | 15 (0 / 15) |
Uptime: | 00:13:10 |
Calls: | 500,299 |
Calls today: | 17 |
Files: | 95,203 |
D/L today: |
2,557 files (611M bytes) |
Messages: | 465,277 |
Posted today: | 12 |