| View previous topic :: View next topic |
| Author |
Message |
rodgerwheat
Joined: 13 Mar 2008 Posts: 1
|
Posted: Thu Mar 13, 2008 9:47 pm Post subject: Compile Error (cmdln) |
|
|
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 |
|
| Back to top |
|
 |
|
|
support Site Admin
Joined: 13 Feb 2004 Posts: 131
|
Posted: Fri Mar 14, 2008 8:06 pm Post subject: |
|
|
Yes, this is a parser error. By default, %* combination reserved as "command line parameter", but should be skipped in this case.
Will be fixed soon. |
|
| Back to top |
|
 |
sKurt
Joined: 23 Jul 2007 Posts: 28
|
Posted: Mon Mar 24, 2008 12:21 am Post subject: *.* |
|
|
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 |
|
| Back to top |
|
 |
support Site Admin
Joined: 13 Feb 2004 Posts: 131
|
Posted: Tue Mar 25, 2008 12:10 am Post subject: |
|
|
| Yes, your code can be used for current version of compiler as temporary solution. |
|
| Back to top |
|
 |
|