The combination of the characters %* seems to cause a compile problem as below:
@echo off
set a=test
echo %a%*
pause
The batch result is: test*
The compiled result is: testcmdln
Thanks, Rodger
Compile Error (cmdln)
*.*
I ran into the same problem when I was trying to do a *.* type of query with my .BATch file
I ended up using
SET q=*.*
and then could use it like
DIR %q%
or in your case maybe
SET q=*
and you could then do your code like this
@echo off
set a=test
echo %a%%q%
pause
I ended up using
SET q=*.*
and then could use it like
DIR %q%
or in your case maybe
SET q=*
and you could then do your code like this
@echo off
set a=test
echo %a%%q%
pause