From: Kevin M. <kev...@us...> - 2008-07-16 14:45:41
|
Alessandro Antonello wrote: > Hi, Kevin. > > I know something about Unix scripts e a little bit more about Windows > batch files. Unfortunately Microsoft if very lazy on this technique > why they prefer JavaScript with a lot of classes and interfaces that > you will never heard about. > > Ok, that said, I think that you are mistakenly removing the quotes in > your command line inside the batch script. Enclosing the command line > switches in quotes usually solves the problem. But, if you are still > having trouble you can get the arguments separated and join them again > inside the script. Like in: > > set SOME_VAR="-%1=%2,%3,%4" > > Them pass 'SOME_VAR' to whatever you want. > > > Regards. > Hi Alessandro, thanks for the reply. Please note that I was not removing the quotes inside the batch script. The Windows command prompt really does not like command line options with "=" or "," enclosed in quotes. In any case, I found a solution to my problem: just pass the entire argument list over to the executable by using "%*" Kevin |