Tim Mayert wrote: > Hello, > > This may be a very simple question, but I can not seem to find a > function that can do this. I am automating the build of our product > install and during the creation of the install it will generate a .txt > file that contains the build log. I would like to open this log file > up to check for errors, but I do not know the exact name of the file > to open for read in. The install will create the txt file in the > following format: > * 9-18-2006 10-49-59 AM.txt* This looks like the type of file generated by the InstallShield build. If so, then I don't think you can specify the file name (at least not in InstallShield 11.5), just the directory. Using the <foreach> that has already been suggested will work, but if you're not clearing out the directory for each build, you'll need to find the latest. That can be tricky if you're trying to parse the name, especially because of the AM/PM. If you do need to do this, use the NAnt file::get-creation-time function instead.
Gary ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users