Batch to add game.exe's path into INI file
Posted: 04 Apr 2020 12:41
I'm creating a standalone installation pack for an existing map editor, for my fellow game map makers. The map editor is called Finalsun, and it has an INI file called FinalSun.ini, inside the .ini file, it should refer to the game.exe like this:
[TS]
Exe=PathToExeFile
But there is nothing at the 'exe=' key. And most people don't know how to fix it. So it needs the path of the Game.exe that resides up one level, So I want to create a batch file that adds the user's absolute path of the game.exe at the 'Exe=' key
finalsun.ini is inside Folder1/Map editor/finalsun.ini the game.exe is inside Folder1/Game.exe (up one level of finalsun.ini)
So to clarify, I need a command for my batch file that will edit FinalSun.ini to have:
[TS]
Exe=Usersdirectories/Folder1/game.exe
The batch file i'm using for the installation is also in the Folder1. I really hope someone can help! Thank you!!
[TS]
Exe=PathToExeFile
But there is nothing at the 'exe=' key. And most people don't know how to fix it. So it needs the path of the Game.exe that resides up one level, So I want to create a batch file that adds the user's absolute path of the game.exe at the 'Exe=' key
finalsun.ini is inside Folder1/Map editor/finalsun.ini the game.exe is inside Folder1/Game.exe (up one level of finalsun.ini)
So to clarify, I need a command for my batch file that will edit FinalSun.ini to have:
[TS]
Exe=Usersdirectories/Folder1/game.exe
The batch file i'm using for the installation is also in the Folder1. I really hope someone can help! Thank you!!