Hi...
Is it possible to create a function that can do search and replace in an .ini file. I need to change a server name under as much as 300 different sections in an .ini file, and I like to do this as a function in a login script. The .ini file looks like this:

[App1]
InstallServer=Server1

[App2]
Installserver=Server1

[App3]
Installserver=Server1

I need to change Server1 to Server2. I can use writeprofilestring, but then i need to know all the sections (It's over 300 of them). Do anyone now how to make function to search and replace the servername in this .ini file.

I need som help here...

RB