Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog 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
View user's profile Send private message
support
Site Admin


Joined: 13 Feb 2004
Posts: 131

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
View user's profile Send private message Send e-mail
sKurt



Joined: 23 Jul 2007
Posts: 28

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
View user's profile Send private message
support
Site Admin


Joined: 13 Feb 2004
Posts: 131

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
View user's profile Send private message Send e-mail
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, 2005 phpBB Group