Subj : Daynbr To : Dallas Hinton From : mark lewis Date : Mon Aug 27 2012 11:16 pm ml> i have never seen sources for the dos daynbr tool... however, it ml> isn't really needed if you have something (ie: 4DOS/4OS2/4NT) that ml> can generate the dayofyear number... some folks mistakenly call this ml> the julian day number... DH> Thanks, Mark -- no, it has to be Windows 32/64 bit. hummm... may i ask why? a limitation of the OS' console operations? i don't know how far 4DOS/4OS2/4NT has gone but there may be a 32bit build of them... ml> in any case, the best thing i like about daynbr is that it is easy ml> to denote the number @### and doesn't require something like %_DOY% ml> which really isn't all that bad... another positive is that it can ml> do some rudimentary math on the doy number, too... i have, somewhere ml> around here, replicated most all of this in 4DOS bat/btm files but i ml> haven't seen it in a very long time... might be easier to just write ml> a replacement from scratch :? DH> It may be - my programmer friend was hoping for a starting point. DH> :-) ahhh... other than a simple DOY tool? ;) ml> speaking of writing from scratch, if you do pascal, then you might ml> want to look at FPC (FreePasCal) which is cross-platform and ml> multi-bits... i'm pretty sure they have some library code that can ml> (easily?) handle this and even the maths stuffs :) DH> Thanks kindly! TBH, this is one of the things that i've been looking at, myself... i've been working on a tool to merge satellite TLEs and some of this date stuff has come into play... especially on the "outside" when the daily archive is archived... but with the routines i'm using, i can easily see where feeding a full date can/will result in a DOY number being returned... at that point, it is just a matter of relatively duplicating daynbr... the biggest thing i see as a drawback is that daynbr is a shell program... by that i'm meaning that it does the doy calcs and formatting on the @### items found on the command line and then it shells out to another console to do the actual work and feeds that math @### calculation to the shelled task in the same manner that i was thinking of just setting an environment variable to the needed doy variable... i hope that makes sense and may also offer some assistance to the task you are looking at... FWIW: everything, other than the new coding of an app for this, is all 16bit stuff... everything in BATPOWER that might help you seems to be but it is possible that i've overlooked something... )\/(ark * Origin: (1:3634/12) .