$* the complete command tail, unmodified by SHIFT
%$ the complete command tail, modified by SHIFT
We do not uses SHIFT very often so we mixed up these two parameters.
On one occasion its was fatal..
It is a minor issue with a very easy workaround.
The extra space before C invalidates the PATH.
We do not use SHIFT and expected the two batch parameters are exactly the same.
%$ the complete command tail, modified by SHIFT
We do not uses SHIFT very often so we mixed up these two parameters.
On one occasion its was fatal..
It is a minor issue with a very easy workaround.
[R:\]
type SetPath.btm
setlocal
echo TCCVer=%@verinfo[%_cmdspec,Fileversion] OSBuild=%_OSBuildEx
set path_to_added=C:\
ECHO.
ECHOX %$ the complete command tail, modified by SHIFT
ALIAS SETPATH=SET PATH=`C:\Windows;%$`
SETPATH %path_to_added
ECHO PATH=%PATH
PATH/N
PATH/V
ECHO.
ECHOX %* the complete command tail, unmodified by SHIFT
ALIAS SETPATH=SET PATH=`C:\Windows;%*`
SETPATH %path_to_added
ECHO PATH=%PATH
PATH/N
PATH/V
[R:\]
call SetPath.btm
TCCVer=28.02.18 OSBuild=22000.376
%$ the complete command tail, modified by SHIFT
PATH=C:\Windows;C:\
C:\Windows
C:\
%* the complete command tail, unmodified by SHIFT
PATH=C:\Windows; C:\
C:\Windows
C:\
TCC: (Sys) R:\SetPath.btm [20] The system cannot find the path specified.
" C:\"
The extra space before C invalidates the PATH.
We do not use SHIFT and expected the two batch parameters are exactly the same.