![]() Set objOutput = FSO.OpenTextFile("settings.new", 2, True, 0) ![]() Set objStream = objfileini.OpenAsTextStream(1, 0) Set objFileNew = FSO.GetFile ("settings.new") Set objFileBak = FSO.GetFile ("settings.bak") Set objfileini = FSO.GetFile("settings.ini") Set FSO = CreateObject("Scripting.FileSystemObject") If the entry doesn't exist, insert it (with all appropriate values). If the entry exists, then I need to check to see if a specific value exists on that line. If the section exists (both lines above), then I need to check to see if a specific entry exists (FolderName). Within the file, there will either be a specific section present, or not.įolderName=Root,PrintResults, FileTransfer, VolumeControl, RestrictedOperatorsĮither way, there are several things I need to do to clean up the data. I have a file called settings.ini that I need to modify in one way or another.
0 Comments
Leave a Reply. |