|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi again all of you,
Please do not flame me for that one.
One simple question that's more windows related or DOS even than POV.
Here goes :
How do you, in .bat files, define that you want to launch a program with as many
parameters as passed to the bat :
i.e.
povray.bat :
d:\povray\bin\pvengine %1% %2%
does not do the job ...
If I give it one parameter it sticks a 2 to the parameter,
if I give it 3 parameters it only passes the first 2 :-((
MTIA again,
Al.
--
ANTI SPAM / ANTI ARROSAGE COMMERCIAL :
To answer me, please take out the Z from my address.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>
>i.e.
>povray.bat :
>d:\povray\bin\pvengine %1% %2%
>
I think you want:
D:\povray\bin\pvengine %1 %2 %3 etc.
%0 contains the name of the batch file, %1 contains the first parameter, %2
contains the second, and so on.
- Grim
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi GrinDude,
OK, Thanks, %1 works, not %1% as I believed it should have been.
Though I would like to know whether you can avoid putting %1 %2 %3 ... and get all
parameters at once.
Say you have 25 parameters, what way do you handle the thing ?
Is there something like %* or %$ or whatever ?
Thanks again for the first step, it helps.
By the way, anyone knows which windows help file applies for that sort of information
? I've been searching to no avail so far.
Cheers,
Al.
--
ANTI SPAM / ANTI ARROSAGE COMMERCIAL :
To answer me, please take out the Z from my address.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Alain CULOS (ZAl### [at] bigfootcom) wrote:
: OK, Thanks, %1 works, not %1% as I believed it should have been.
: Though I would like to know whether you can avoid putting %1 %2 %3 ... and get all
parameters at once.
: Say you have 25 parameters, what way do you handle the thing ?
: Is there something like %* or %$ or whatever ?
AFAIK there is no way in command.com to say "all the parameters". The usual
way is to say:
povray %1 %2 %3 %4 %5 %6 %7 %8 %9
command.com is a very limited command line interpreter. I think a better
interpreter like 4dos allows to say those things like "all the paramaters".
--
- Warp. -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Alain CULOS wrote:
>
> Hi GrinDude,
>
> OK, Thanks, %1 works, not %1% as I believed it should have been.
> Though I would like to know whether you can avoid putting %1 %2 %3 ...
> and get all parameters at once.
> Say you have 25 parameters, what way do you handle the thing ?
> Is there something like %* or %$ or whatever ?
>
Nope. you can only pass 9 parameters to a program in a batch file. There
is a way to use more than 9 parameters in a batch file (using the SHIFT
command), but this only allows you to use those parameters in different
statements.
The way to what you want would be to write a C program. Or you could
always get a DOS port of one of the Unix shells (like bash). Or you
could just run the Unix version of POV. I hear it goes about 20% faster
than the Windows version.
--
Theran Cochran - the### [at] geocitiescom
http://www.geocities.com/SiliconValley/Way/8201
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Alain CULOS wrote:
*snip*
>
> Thanks again for the first step, it helps.
> By the way, anyone knows which windows help file applies for that sort of
information ? I've been searching to no avail so far.
Check out the win95 cd. It should have a dir call "oldmsdos" in the "other" folder.
Inside
there is a help.exe. Run this, and you will get the help you need for most dos
commands...
Cheers, Matthew
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|