Re: ant execute Windows del command

2011-05-12 Thread shi chuan
thanks a lot! it works like a charm! On Fri, May 13, 2011 at 3:44 AM, Dominique Devienne wrote: > On Thu, May 12, 2011 at 2:35 PM, shi chuan wrote: > > thanks for the quick reply, now i tried the one below, still no luck, > > anything else that could be wrong? > > My bad, it's /c, not -c. --DD >

Re: ant execute Windows del command

2011-05-12 Thread Dominique Devienne
On Thu, May 12, 2011 at 2:35 PM, shi chuan wrote: > thanks for the quick reply, now i tried the one below, still no luck, > anything else that could be wrong? My bad, it's /c, not -c. --DD D:\>touch foo D:\>touch bar D:\>dir /B foo bar foo bar D:\>cmd /nologo /c del foo bar D:\>dir /B foo bar Fi

Re: ant execute Windows del command

2011-05-12 Thread shi chuan
thanks for the quick reply, now i tried the one below, still no luck, anything else that could be wrong? On Fri, May 13, 2011 at 3:30 AM, Dominique Devienne wrote: > On Thu, May 12, 2011 at 2:17 PM, shi chuan wrote: > > > > That's a single of name "-c del", not two args "-c" and "del

Re: ant execute Windows del command

2011-05-12 Thread Dominique Devienne
On Thu, May 12, 2011 at 2:17 PM, shi chuan wrote: > That's a single of name "-c del", not two args "-c" and "del". Use either line="-c del" or two . --DD - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additiona

Re: ant execute Windows del command

2011-05-12 Thread shi chuan
Now I am trying to use the following, it seems the error message is gone, but the file is not deleted: On Fri, May 13, 2011 at 2:55 AM, Dominique Devienne wrote: > On Thu, May 12, 2011 at 1:45 PM, shi chuan wrote: > > Hi guys, I am trying to app

Re: ant execute Windows del command

2011-05-12 Thread Dominique Devienne
On Thu, May 12, 2011 at 1:45 PM, shi chuan wrote: > Hi guys, I am trying to apply a task using Windows executable 'del' to > delete files, the reason I don't use is because it will delete even > if things are up to date. > However this runs into an error: cannot run program 'del'...error=2 > > a

ant execute Windows del command

2011-05-12 Thread shi chuan
Hi guys, I am trying to apply a task using Windows executable 'del' to delete files, the reason I don't use is because it will delete even if things are up to date. However this runs into an error: cannot run program 'del'...error=2 Is there anything I can do to the above command to make it wor