Is the file in question something that you control, or it a template file or
something?
If so, you can use a filterchain during a copy or move to replace tokens with
some value.
BOb
From: Sastry, Dilip IN PUN SISL [mailto:dilip.sas...@siemens.com]
Sent: Friday, September 30, 2011 6:51 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Find and Replace String.
Hi,
Can you send me Nant Script for the following task.
Open the bat file.
Read the file
Collect the File contents to an array
Match a particular string
Open the same File again
And Replace the above captured string with a new string.
Thnx,
Dilip Sastry.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users