That would also work cause all they would need to do is unpack the ini file run the bat and repack the ini. So that's easy enough for people to implement. Now I'm not sure if the .eng files are considered an ini or not and wether or not this method would work for those. But that's not as important imo, as the ini.
Originally Posted by HowardC
Now is this what I would need to use in the batch file to accomplish this ?
And My Section would be the Bracket section
[DllImport("kernel32.dll", EntryPoint = "WritePrivateProfileString")]
private static extern bool WritePrivateProfileString(string lpAppName, string lpKeyName, string lpString, string lpFileName);
static void Main(string args)
// Write a new value.
WritePrivateProfileString("MySection", "MyKey", "New Value", "\\initest.ini");
New Value would be what I want to add
\\initest.ini would be MK9Game.ini
And I wouldn't use the My Key part as I don't want to replace ??
Is that correct ? I'm sure u could come up with something better/easier to use but I just wanted to know If I was on the right path