Hi,
I tend to do something like this...
dim strFilename as string
dim strRunning as string
dim strTemp as string
strFilename="c:\setup.ini" 'or whatever the ini file is
FileOpen(1, strFilename, OpenMode.Input)
while not eof(1)
input(1, strTemp)
if strTemp="Startup=True" then 'or whatever you want to change
strRunning=strRunning + "Startup=False" + vbnewline
Else
strRunning=strRunning + strTemp + vbnewline
End if
wend
fileclose(1)
fileopen(1, strFilename, OpenMode.Output)
print(1, strRunning)
fileclose(1)
If you want to check just for the first part of the 'variable' you can use:
if left(strTemp, 7)="StartUp"
As the test instead.
Hope that helps you!!!
Bob.