**SHIFT
If you notice, you can only use 9 parameters: from %1 to %9. In most
of cases this it more than enough. But, if you need to use more than 9
parameters in your program, you can use the order SHIFT. SHIFT makes the
parameters lose their current value and will give them the value of the next
numbered parameters. Quite confusing, I know. Lets see it.
If you give the order SHIFT, %1 lose it's value and, from now, has
second parameter as content. The same with %2, that now refers to the third
parameter... and so on till the %9 parameter. Now, the %9 values the 10th
parameter, that was unaccesible before.
You can execute SHIFT as many times as you want. But note that the
maximun DOS order width is 255 characters, so you don't make a program that
needs 50 parameters because you won't be able to type all of them.
http://users.110.net/~pq1801/gtmhh/ms2p2.htm

See also: http://www.robvanderwoude.com/index.html

HTH
Ed



-----Original Message-----
Sent: Friday, November 16, 2001 9:45 AM
To: Multiple recipients of list ORACLE-L



Hi!
Maybe You can help me:

One can call a cmd or bat file with parameters like
example.cmd para parb parc

and in this cmd file I can refer to them using %1 %2 %3 and so on

My problem is following
How can I get more than 9 parameters because when I use %10 in cmd file I
get first passed parameter wth concatened 0 at the end, ie., para0 ?

TIA

Gints Plivna
IT Sistēmas, Merķeļa 13, LV1050 Rīga
http://www.itsystems.lv/gints/


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


* * * * * Freedom of Information Act Notice * * * * * 
The information in this email is subject to the record protection mandated
by 5 United States Code 552(b)(4) and relevant judicial opinions. 
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Sherman, Edward
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to