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,777 of 68,980    |
|    Herbert Kleebauer to R.Wieser    |
|    Re: Use the remaining arguments ?    |
|    22 Apr 24 23:37:01    |
      From: klee@unibwm.de              On 22.04.2024 22:28, R.Wieser wrote:              >> Or tell us, what exactly you want to do.       >       > Would it make a difference if I told you that the exact "first" line is "if       > exist %1.ext goto DoExt" ?              Yes.              If there are no poisoned characters like %^!& in the arguments,       this should work:              set p=&for %%i in (%*) do if defined p (call set p=%%p%% %%i) else (set p= )       echo %p%              --- 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