Hi Mateusz,

> On 08/15/2014 12:29 PM, Tom Ehlert wrote:
>> a better way to achieve the same effect would be a directory on the
>> PATH with batches that redirect to the proper location.
>>
>> ZIP.BAT
>>     shift
>>     c:\USR\BIN\ZIP %1 %2 %3 %4 %5 %6 %7 %8 %9

> Exactly what I was saying, yes.
exactly. I saw your letter too late;)

> For now, that's my favorite solution
> (unless anyone comes up with a better one that I missed). I'm not sure
> why the 'shift' thing would be needed, though?
my fault.

it should have been

      c:\USR\BIN\ZIP %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
                     ^^
and you can pass an additional parameter for

   ZIP dest.zip -r -1 -q -x *.tmp -x *.obj -x *.lst

and you see the limit of this approach. maybe

     shift
     set ARG1= %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     set ARG2= %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     shift
     c:\USR\BIN\ZIP %arg1% %arg2% %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
     set arg1=
     set arg2=


>> otoh I don't see that ZIP should get it's own directory.

> well, one could imagine putting the entire info-zip stuff into a 
> dedicated directory,

in good old DOS times, programs (utilities) were single executables. no need to
install, package, create separate directories, ...
most likely info-zip is not an DOS program ;)

> along with any possible documentation, etc.
noone will read documentation anyway


Mit freundlichen Grüßen/Kind regards
Tom Ehlert
+49-241-79886


------------------------------------------------------------------------------
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to