Take a look at the available task, that should give you what you need ...
Gert
- Original Message -
From: "Bill Conroy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Hearn, Bruce"
<[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 11:52 PM
Subject: Re: [Nant-users] file existence task?
>
I just tried to achieve the same thing today...I did this:
is there a way to check for the existence of a file or directory on disk?
To elaborate, I use batch scripts a lot and would like to move everything to
Nant. In batch, I can do things like this:
if exists "c:\somedir\somefile.txt" echo the file exists!
or:
if exists r:\ (