Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   find a text and replace it (http://forums.winamp.com/showthread.php?t=287195)

sergiotaraujo 19th February 2008 12:11

find a text and replace it
 
Hello...
I wanna say thanks for who answer my other questions!!
THANKS!!!
But now I have another one!!

I need find a line in a file and replace it for another one using a NSIS variable!!

Like this..
I have this file: php.ini
and in this file, I have this line:
extension_dir = "c:/PHP/ext/"

I need replace this line for this one:
extension_dir = "$PROGRAMFILES/PHP/ext/"

anybody has a simple code to made it?
I need full code to made it! Cause I really don`t know!!!
Thanks a lot!!!

Red Wine 19th February 2008 13:11

Review the manual,
4.9.2.10 ReadINIStr
4.9.2.13 WriteINIStr

Afrow UK 19th February 2008 15:03

If it is not a true INI file with section headers, use ConfigRead and ConfigWrite, also in the user manual.

Stu


All times are GMT. The time now is 04:20.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.