Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Compile Error (cmdln)

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
rodgerwheat



Joined: 13 Mar 2008
Posts: 1

PostPosted: Thu Mar 13, 2008 9:47 pm    Post subject: Compile Error (cmdln) Reply with quote

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: 378

PostPosted: Fri Mar 14, 2008 8:06 pm    Post subject: Reply with quote

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: 32

PostPosted: Mon Mar 24, 2008 12:21 am    Post subject: *.* Reply with quote

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: 378

PostPosted: Tue Mar 25, 2008 12:10 am    Post subject: Reply with quote

Yes, your code can be used for current version of compiler as temporary solution.
Back to top
Noxolos



Joined: 28 Jun 2010
Posts: 2

PostPosted: Tue Jun 29, 2010 1:44 pm    Post subject: Reply with quote

Hi,

when will the %* error be fixed?

Best Regards
Noxolos
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group