Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.msdos.programmer > #1063
| From | "Ed" <invalid@invalid.com> |
|---|---|
| Newsgroups | comp.os.msdos.programmer |
| Subject | Re: Batch file replaceable parameters |
| Date | 2013-11-17 12:41 +1100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <l696ui$ssl$1@speranza.aioe.org> (permalink) |
| References | <l61eus$cmi$1@speranza.aioe.org> <l622d8$j6f$1@speranza.aioe.org> |
Herbert Kleebauer wrote:
> On 14.11.2013 04:09, Ed wrote:
> > Is it possible to pass the following string as a replaceable parameter in a Batch file?
> >
> > STUFF=8
> >
> > Batch appears to treat = as a delimiter and the result is two parameters - "STUFF" and
> > "8". Is there any way to circumvent this?
>
>
>
> if [%1]==[stuff] set stuff=%2
> if [%1]==[stuff] shift
This doesn't produce the desired effect (?)
I'm using TASM in a batch file and sometimes need to enter/modify a symbol
from the command-line e.g.
C:> asm stuff
where ASM.BAT contains the line:
tasm /l /t /d%1 /d%2 /d%3 /d%4 /d%5 source.asm
and the desired effect would be:
tasm /l /t /dstuff filename.asm
That works. However in order to pass a symbol and value to TASM
tasm /l /t /dstuff=8 filename.asm
Batch would need to insert 'stuff=8' as one item.
Back to comp.os.msdos.programmer | Previous | Next — Previous in thread | Find similar | Unroll 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