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)
-
- Site Admin
- Posts: 476
- Joined: Fri Feb 13, 2004 1:05 pm
-
- Posts: 32
- Joined: Mon Jul 23, 2007 5:37 am
*.*
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
-
- Site Admin
- Posts: 476
- Joined: Fri Feb 13, 2004 1:05 pm
-
- Posts: 2
- Joined: Mon Jun 28, 2010 10:55 am