Path: number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.tpinternet.pl!news.astercity.net!newsfeed.gazeta.pl!newsfeed.atman.pl!news.intercom.pl!f124.n480!f127.n480!f112.n480!f200.n2432!f605.n774!f500.n123!f2000.n106!f12.n3634!not-for-mail
Newsgroups: fido.4dos
Distribution: fido
From: mark lewis
Date: Thu, 03 Jun 04 18:03:11 +0200
Subject: Change batch commands
Message-ID:
References:
2443/1181
Lines: 56
Xref: number1.nntp.dca.giganews.com fido.4dos:517
RB>>> The alias CALC = KEYSTACK "CALC %@comma[%@EVAL[%&]]" works
RB>>> under 4DOS, but under 4NT I don't get a result. The alias
RB>>> should be used like "calc 4 + 5 ENTER"
JB>> I think keystack is the problem.
JB>> there may be a way to make it work woth NT,
JB>> I don't use it.
RB> What do you use?
i don't understand what it is that you are trying to do with this calc setup...
mine is very easy... i just use an alias and then type something like
calc 4 + 5
JB>> perhaps something like this instead.
JB>> :: (RECALC.BTM)
JB>> @echo off
JB>> setlocal
JB>> on break quit
JB>> on error quit
JB>> set calc=%@comma[%@eval[%&]]
JB>> eset calc
JB>> %0 %calc
RB> No, unfortunately this doesn't work. Maybe there's somebody
RB> else who has an idea. Or are we the only ones here?
i just modified my alias.ini file so that my calc alias contains the %@comma
function like yours (not that i need it as the comma gets in the way when i'm
copying and pasting at times) and it works as advertised... here's the alias
calc=echo %@comma[%@eval[%&]]
and i have to load the alias' with the following command
alias /r \alias.ini
when i was trying to manually enter the alias from the command line, it wasn't
working... i was getting a zero displayed and then the formula that i entered...
once i use the alias /r command, it all worked as desired...
c:\>calc 4000+500
4,500
c:\>
this is on win98se and OS/2 Warp 3...
)\/(ark
|