Create a .bat file that performs tasklist command in a for loop:

@ECHO OFF
For /F "tokens=1 delims= " %%A in ('tasklist') DO IF "%
%A"=="InsertNameOfApplicationThatIsRunningTheFile" Timeout /T 5


Execute this .bat file before you execute the delete.  The above .bat
file syntax will create a 5 second wait.

On Aug 23, 4:31 am, Edwin <[email protected]> wrote:
> I use CCNET exec nant task, sometimes occurs error as subject.
> first nant task use exec output to a file
> second nant task delete file then exec other task
> I use ccnet.1.5.7256.1
> is there anyone face the same problem? help
> thank you

Reply via email to