#190684 - 2008-11-20 09:11 AM
Re: Change string in ini file without a index
[Re: Arend_]
|
Shajoca
Fresh Scripter
Registered: 2008-09-04
Posts: 17
|
Hi glenn is this correct ?
Dim $objFSO, $strIni, $objIni, $strTxt $objFSO = CreateObject("Scripting.FileSystemObject") $strIni = "C:\app.ini" $objIni = $objFSO.OpenTextFile($strIni, 8, 1) $strTxt = $objIni.ReadAll $strTxt = Join(Split($strTxt,"ICO=10.32.62.30"),"ICO=MyDomain") $objIni.Write($strTxt) $objIni.Close
I also insert in attach the kix script and the ini file that must be changed --> ico= to ico=mydomain thx
Attachments
Ibs.kix (172 downloads) Description:
Acssetup.ini (162 downloads) Description:
Edited by Shajoca (2008-11-20 09:34 AM) Edit Reason: attachments
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2630 anonymous users online.
|
|
|