Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Doing a Find/Replace over text files


1 reply to this topic

xdaze

xdaze
  • Members
  • 1 posts

Posted 15 October 2003 - 18:28

I'm looking for a way to read in file and replace a common string in the file with a value. For example: If I have a file connectionstring.txt and it had sever lines with %NameServer%, is there any way InstallScript can find/replace all instances of %NameServer% with another value? Or, would I need to run a third-party utility?

Thanks in advance!!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 16 October 2003 - 17:13

Take a look here under InstallScript Samples -> Strings -> Replace a String in a File