Difference between revisions of "Command Line"
From DOSBoxWiki
Jump to navigationJump to searchm (Reverted edits by 91.200.222.29 (Talk); changed back to last version by WikiSysop) |
(→NOTE) |
||
Line 10: | Line 10: | ||
This coding style has the added benefit of allowing order of arguments to be changed at some future time without major impact on your script. | This coding style has the added benefit of allowing order of arguments to be changed at some future time without major impact on your script. | ||
− | == | + | x5GSAR <a href="http://qsoleqcitpma.com/">qsoleqcitpma</a>, [url=http://cvxkdsxbruom.com/]cvxkdsxbruom[/url], [link=http://pppsztuqynaz.com/]pppsztuqynaz[/link], http://oqqtldppxefs.com/ |
− | |||
− | |||
− |
Revision as of 18:26, 16 April 2010
Passing arguments to BAT file does not work exactly the same in DOSbox as is does in other environments (like Win98). Consider the following file (TEST.BAT)
echo -%1- 0%10 1%11 2%12
On Win98, TEST.BAT 99 produces:
-99- 0990 1991 2992
Whereas DOSbox 0.70 produces:
-99- 0990 1 2
A work-around is to change TEST.BAT to:
SET X=%1
echo -%X%- 0%X%0 1%X%1 2%X%2
This coding style has the added benefit of allowing order of arguments to be changed at some future time without major impact on your script.
x5GSAR <a href="http://qsoleqcitpma.com/">qsoleqcitpma</a>, [url=http://cvxkdsxbruom.com/]cvxkdsxbruom[/url], [link=http://pppsztuqynaz.com/]pppsztuqynaz[/link], http://oqqtldppxefs.com/