I'm looking for either source code for daynbr.exe, or (even better)
a winodws 32/64 bit version. I know of daynbrw.exe, but it doesn't
have a full commandline set of instructions, so doesn't work for
what I want. Appreciate any help in this direction!
i have never seen sources for the dos daynbr tool... however, it
isn't really needed if you have something (ie: 4DOS/4OS2/4NT) that
can generate the dayofyear number... some folks mistakenly call this
the julian day number...
in any case, the best thing i like about daynbr is that it is easy
to denote the number @### and doesn't require something like %_DOY%
which really isn't all that bad... another positive is that it can
do some rudimentary math on the doy number, too... i have, somewhere
around here, replicated most all of this in 4DOS bat/btm files but i haven't seen it in a very long time... might be easier to just write
a replacement from scratch :?
speaking of writing from scratch, if you do pascal, then you might
want to look at FPC (FreePasCal) which is cross-platform and
multi-bits... i'm pretty sure they have some library code that can (easily?) handle this and even the maths stuffs :)
i have never seen sources for the dos daynbr tool... however, it
isn't really needed if you have something (ie: 4DOS/4OS2/4NT) that
can generate the dayofyear number... some folks mistakenly call this
the julian day number...
Thanks, Mark -- no, it has to be Windows 32/64 bit.
in any case, the best thing i like about daynbr is that it is easy
to denote the number @### and doesn't require something like %_DOY%
which really isn't all that bad... another positive is that it can
do some rudimentary math on the doy number, too... i have, somewhere
around here, replicated most all of this in 4DOS bat/btm files but i haven't seen it in a very long time... might be easier to just write
a replacement from scratch :?
It may be - my programmer friend was hoping for a starting point.
:-)
speaking of writing from scratch, if you do pascal, then you might
want to look at FPC (FreePasCal) which is cross-platform and
multi-bits... i'm pretty sure they have some library code that can (easily?) handle this and even the maths stuffs :)
Thanks kindly!
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...
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...
ahhh... other than a simple DOY tool? ;)
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...
Just a guess... I think the poor fellow is having trouble with the so-called 'advanced' version of Windows, on the loose these days.
Any old DOS tools that might have set/changed a DOS %envar% no
longer works. There is a way around it...
Any old DOS tools that might have set/changed a DOS %envar% no longer
works. There is a way around it...
Nice idea, but no. The problem is that I'm running 64 bit, so 16 bit
stuff no longer works at all (at least, not without running a virtual machine, which I'm trying to avoid).
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...
Just a guess... I think the poor fellow is having trouble with the so-called 'advanced' version of Windows, on the loose these days.
Any old DOS tools that might have set/changed a DOS %envar% no
longer works. There is a way around it...
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...
It's what I run on my desktop. Simple!
ahhh... other than a simple DOY tool? ;)
If we change to something other than daynbr, then several batch
files will have to be rewritten -- rather a pain!
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...
There's several routines for getting that number, but as I say, a
complete rewrite of the existing batch files.
daynbr echo @###DAYNBR -- Version 1.0
echo %_doy241
daynbr /-7 echo @###DAYNBR -- Version 1.0
echo %@EVAL[%_DOY-7]234
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...
That's the other possibility - batch files work, and maybe I can
write a daynbr.bat to take the equivalent parameters.
Any old DOS tools that might have set/changed a DOS %envar% no longer
works. There is a way around it...
yep... even if the tool does nothing but to emit the DoY number...
yep... even if the tool does nothing but to emit the DoY number...
Nah. I was thinking of a two-liner, still involving daynbr (which
I don't use here) and a tool I use called NSET. NSET could pick up
the output from daynbr and spew it into a %temp%\temptemp.bat file.
That's one line. The second simply runs the %temp%\temptemp.bat to
SET the %envar%. It's a technical solution found long ago in
BATPOWER. I use it here.
However, the environmental constraints that Dallas is hinting at
has me confused.
It's a technical solution found long ago in BATPOWER. I use it here.
yeah, that's similar to the one i posted where the ficticious whatdoy
tool emits the doy number which is redirected to stdout and then
saved to a bat to be called next...
However, the environmental constraints that Dallas is hinting at
has me confused.
seems that he doesn't or can't run a VM and the old 16bit apps are [censored] in this supposedly better world of 64bit schtuff :?
i know what you mean about "fixing" a working system...
Yup! :-)
[current DoY]
Where are you getting DoY from? It's not built into W7.
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...
I'd have to recompile it for 64 bit, and that's beyond me.
does daynbr not run for you any more or is it the shelling to the
called apps that is failing??
No, it just doesn't run.
BTW: what version of daybnr do you have?
2.1
I'll have to study this stuff -- it's pretty messy, but could be
turned into an EXE once it's done. Thanks!
seems that he doesn't or can't run a VM and the old 16bit apps are [censored] in this supposedly better world of 64bit schtuff :?
The latter <sigh>
i know what you mean about "fixing" a working system...
[current DoY]
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...
does daynbr not run for you any more or is it the shelling to the
called apps that is failing??
BTW: what version of daybnr do you have?
seems that he doesn't or can't run a VM and the old 16bit apps are [censored] in this supposedly better world of 64bit schtuff :?
i know what you mean about "fixing" a working system...
Yup! :-)
[current DoY]
[current DoY]
Where are you getting DoY from? It's not built into W7.
that's one of the main things that daynbr does.. actually, the main thing...
that's one of the main things that daynbr does.. actually, the main thing... but i also thought you said that you were able to use 4DOS/4NT/4OS2 (one of them) on your setup...
hunh? maybe... but it seems to me that while 16bit is out, 32bit is
in??
wow! i've only ever had v1.0... and it has a misspelling in the
copyright if you hadn't noticed :P
where can i get a/the daynbr v2.1 original archive from Ben Baker??
if you are talking about my "stream of consiousness" stuff, i
dunno... and i can't fathom why it would need to be an executable...
but then again, i don't run a 64bit OS... and likely won't until a
true and real need is depicted that i cannot refuse...
if you have a 64bit machine at your disposal and you want/need to
carry on with your 16bit operations, the only answer these days is
to set up a VM... others have already pointed out the available
recovery options... moving past that is dancing on the razor's edge
but someone has to do it ;) -=B-)
i can only hope that my previous postings have offered some
assistance and an answer to your plight... especially since most
everything in BATPOWER is 16bit ;)
that's one of the main things that daynbr does.. actually, the main thing... but i also thought you said that you were able to use 4DOS/4NT/4OS2 (one of them) on your setup...
No, someone suggested it, but I'm not willing to overlay yet
another OS/shell!
Thanks, Mark -- no, it has to be Windows 32/64 bit.[/quote]
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...
It's what I run on my desktop. Simple!
hunh? maybe... but it seems to me that while 16bit is out, 32bit is
in??
Yes, true. However, if I have to rewrite for 32, why not for 64?
wow! i've only ever had v1.0... and it has a misspelling in the
copyright if you hadn't noticed :P
where can i get a/the daynbr v2.1 original archive from Ben Baker??
I should have it here.... Yes, I do. I can send it to you....
if you are talking about my "stream of consiousness" stuff, i
dunno... and i can't fathom why it would need to be an executable...
but then again, i don't run a 64bit OS... and likely won't until a
true and real need is depicted that i cannot refuse...
if you have a 64bit machine at your disposal and you want/need to
carry on with your 16bit operations, the only answer these days is
to set up a VM... others have already pointed out the available
recovery options... moving past that is dancing on the razor's edge
but someone has to do it ;) -=B-)
Yup -- I've got a VM running, but there are a few disadvantages,
and the challenge of moving ahead is, um, interesting. :-)
i can only hope that my previous postings have offered some
assistance and an answer to your plight... especially since most
everything in BATPOWER is 16bit ;)
I do appreciate your help - honest!
BTW: what version of daybnr do you have?
2.1
wow! i've only ever had v1.0... and it has a misspelling in the copyright if you hadn't noticed :P
where can i get a/the daynbr v2.1 original archive from Ben Baker??
where can i get a/the daynbr v2.1 original archive from Ben Baker??
I've got daynbr21.zip here:
where can i get a/the daynbr v2.1 original archive from Ben Baker??
I've got daynbr21.zip here:
thanks, janis! i've got a copy now ;)
where can i get a/the daynbr v2.1 original archive from Ben Baker??
I've got daynbr21.zip here:
thanks, janis! i've got a copy now ;)
Ok :) One of these days I have to install DOSEMU Lol..
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,023 |
Nodes: | 17 (2 / 15) |
Uptime: | 11:07:28 |
Calls: | 502,251 |
Calls today: | 5 |
Files: | 103,940 |
D/L today: |
10,970 files (2,317M bytes) |
Messages: | 299,705 |