Login | |
|
 |
Re: Automated installation - 6/21/2004 2:02:57 AM
|
|
 |
|
| |
mbouchard
Posts: 1924
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Sheel, If the lines in the config file are unique then you can use replace to get the new values in to the config. try something like this: Const ForReading = 1 Const ForWriting = 2 Dim ReadAllTextFile, NewTextFile, F Set F = Fso.OpenTextFile("c:\config.ini", ForReading) ReadAllTextFile = F.ReadAll F.close Wscript.Sleep 500 Newtextfile = replace(readalltextfile, "LINE1", "NEWLINE1") Newtextfile = replace(NewTextFile, "LINE2", "NEWLINE2") Set F = Fso.OpenTextFile("c:\Config.ini", ForWriting, True) F.Write newtextfile F.close
|
|
| |
|
|
|
|
|