Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 68,775 of 68,980    |
|    Herbert Kleebauer to R.Wieser    |
|    Re: Use the remaining arguments ?    |
|    22 Apr 24 21:36:59    |
      From: klee@unibwm.de              On 22.04.2024 19:45, R.Wieser wrote:       > Herbert,       >       >> Why not use the program name itself as first parameter,       > [snip]       >       > :-) In that case I would not even bother to prefix the name of the       > batchfile to that commandline.              I suppose you do some other task in the batch before you       start the program with %*. Or tell us, what exactly you want       to do.                     >> Or if you use numbers (or names) as first parameter to specify the program       >> you can use something like this:       > [snip]       >       > Besides it throwing an error when an unknown first argument would be              But exactly that should a program do: if you give an illegal input,       it should give an error.                     > provided, it also doesn't do what I asked :       >       > calling it with "1 foo" would display "program 1 was called with parameter 1       > foo". Its exactly that last "1" that I'm trying to get rid of.              Here I get:       program 1 was called with parameter foo              The 1 is removed from the parameters because it is used as label       for the call statement.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca