No need for any utility. for /f %i in ("ant.bat") do @echo %~$path:i
-----Original Message----- From: Bill Rich [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 7:24 PM To: 'Ant Users List' Subject: RE: ant not recognizing command line argument Attached is a little utility I have had for quite a while and may help. It is a version of the which program found on many Unix systems that runs in Windows. Place this file in a directory that is pointed to by your path setting, open the command window where you would normally run ant, type which ant. It should show you the first any executable that will be run if you enter the ant command. In a normal installation of ant this should be ant.bat. It will also show the path to the executable. HTH Bill -----Original Message----- From: Safak Ökmen [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 9:46 AM To: Ant Users List Subject: Re: ant not recognizing command line argument I have taken ant bin path out of the path variable one moment ago, so it is not listed in the set output. Steve Loughran wrote: > Safak Ökmen wrote: >> ANT_HOME was pointing to "D:\programme\ant". >> >> I'm sorry. I just don't know what's wrong. >> >> I have a command line utility fsum (FastSum) which I tried with >> command line arguments (fsum something.zip something.zip.md5) and it >> works fine. I think that means cmd is recognizing command line >> argument. I will try installing ant fresh. >> >> Matt Benson wrote: > > something is wrong with your command line env. probalby the classpath > or something. List your entire environment by typing > > set > > at the command prompt; post the results. I would suspect trouble in > > CLASSPATH > PATH > > You can also edit ant.bat, comment out the @echo off line and see what > command line is being constructed. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]