TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: Ralf Brinkmann
from: mark lewis
date: 2004-06-03 19:03:10
subject: Change batch commands

RB>>> The alias CALC = KEYSTACK "CALC
%{at}comma[%{at}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>> {at}echo off
 JB>> setlocal
 JB>> on break quit
 JB>> on error quit
 JB>> set calc=%{at}comma[%{at}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
%{at}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 %{at}comma[%{at}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

* Origin: (1:3634/12)
SEEN-BY: 633/267 270
@PATH: 3634/12 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.