flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
nop 21 Sep 2011, 03:45
@ouadji hey i know this one %xxx% is a named parameter for dos batch files which dos reads from the environment so before running the batch file you set the value of %xxx% using the set command in this case set %lib% = c:\fresh\source or whatever
![]() ![]() |
|||
![]() |
|
typedef 21 Sep 2011, 04:46
nop wrote: @ouadji hey i know this one %xxx% is a named parameter for dos batch files which dos reads from the environment so before running the batch file you set the value of %xxx% using the set command in this case set %lib% = c:\fresh\source or whatever Example: Code: ;mybat.cmd/.bat cls @echo off set /p option=Choose an option(1,2): echo Your option is %option% pause>nul ![]() |
|||
![]() |
|
ouadji 21 Sep 2011, 08:03
thank you nop, thank you typedef I suspected that was something about a batch file. This stuff has always been a mystery for me. Something about programming, but without mov, cmp and call ... therefore incomprehensible ! ![]() edit Quote: @nop : ... in this case set %lib% = c:\fresh\source or whatever ... it works, but without space and without "%" Code: ;my_make.bat set lib=..\.. ; set lib= ..\.. does not work (one space) fasm wink.asm ;--------------------------- ;wink.asm ... ;include '..\..\version.inc' include '%lib%\version.inc' ... |
|||
![]() |
|
Overflowz 21 Sep 2011, 09:59
ouadji
also, it used to read Environment Variables ( http://en.wikipedia.org/wiki/Environment_variable ) for example: Code: echo %USERNAME% will print current username. and so on.. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.