On Mon, 28 Nov 2016 17:58:14 -0600, Rugxulo wrote:
> Maybe put double quotes " " around args when invoking the .BAT?

This doesn't change anything regarding how the equal characters are 
processed. Worse even, the callee ends up being called with too many 
arguments each time, since each "" argument is considered as a valid 
(empty) parameter. Observed with FreeCOM at least.

=== getargs.bat ===
@ECHO OFF
GETARGS.EXE "%1" "%2" "%3" "%4" "%5" "%6" "%7" "%8" "%9"

=== executing test... ===
GETARGS.BAT /X=4 Y=5
got 10 args:
 0='C:\GETARGS.EXE'
 1='/X=4'
 2='Y'
 3='5'
 4=''
 5=''
 6=''
 7=''
 8=''
 9=''

Mateusz


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

Reply via email to