Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #1067

Re: Batch file replaceable parameters

From "Ed" <invalid@invalid.com>
Newsgroups comp.os.msdos.programmer
Subject Re: Batch file replaceable parameters
Date 2013-11-19 20:00 +1100
Organization Aioe.org NNTP Server
Message-ID <l6f9e6$50j$1@speranza.aioe.org> (permalink)
References <l61eus$cmi$1@speranza.aioe.org> <52844f28$0$9303$703f8584@textnews.kpn.nl> <l61k03$lqc$1@speranza.aioe.org> <5289e2d7$0$15882$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


R.Wieser wrote:
> Hello Ed,
>
> > > Maybe try   "stuff=8"    with the quotes?
> >
> > Tried that (MS-DOS 7).  Didn't help.
>
> That phrase isn't really helpfull you know.  I'm pretty sure you got an
> error message back, why didn't you include it ?

There was no error message.  TASM sees  /d"stuff=8"  and swallowed it without
any effect that I could ascertain.

> > I'm using TASM in a batch file
>
> Although TASM is a very well-known word with me (as in "Borlands TASM",
> which is what I use regulary) I also know that there are more assemblers out
> there being referred to with TASM.  Could you please be more specific ?

I would have had been using one of the lesser-known TASM.

> As for the problem ?  Sjouke Burry's solution would be the best a good one,
> if only you could strip those (double)quotes from the batch argument ...

There's the rub

> Well, under XP that seems to be very easy: just put a tilde ("~") between
> the percentage sign and the argument index-number: /d%~1

Interesting.  Tried this under Win98SE.  TASM sees  /d~1  and reports
"unknown character"

> One problem though:  On my machine using a "/d" on itself (no actual
> argument provided ) caused my TASM v5.0 to crash.
> A solution to that would be to, in the batchfile, combine all those "/d"
> arguments into a single string (including the "/d" prefixes), skipping the
> empty ones.

That's curious as I haven't noticed the problem.  My batch file has provision
for 6 such parameters i.e. /d%1 /d%2 /d%3 /d%4 /d%5 /d%6
Usually they're passed empty to TASM.  At the moment I have TASM 3.1
installed but I'm reasonably certain I've tested with other versions
including 5.0.


Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-14 14:09 +1100
  Re: Batch file replaceable parameters Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2013-11-14 05:18 +0100
    Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-14 15:35 +1100
      Re: Batch file replaceable parameters pete@nospam.demon.co.uk - 2013-11-14 07:30 +0000
        Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-14 19:19 +1100
      Re: Batch file replaceable parameters "R.Wieser" <address@not.available> - 2013-11-18 10:53 +0100
        Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-19 20:00 +1100
          Re: Batch file replaceable parameters "R.Wieser" <address@not.available> - 2013-11-19 19:31 +0100
            Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-21 23:07 +1100
              Re: Batch file replaceable parameters "R.Wieser" <address@not.available> - 2013-11-21 17:39 +0100
      Re: Batch file replaceable parameters Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2013-11-18 11:48 +0100
        Re: Batch file replaceable parameters pete@nospam.demon.co.uk - 2013-11-18 20:19 +0000
        Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-19 20:02 +1100
  Re: Batch file replaceable parameters Herbert Kleebauer <klee@unibwm.de> - 2013-11-14 09:39 +0100
    Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-17 12:41 +1100

csiph-web