n4gix
Resource contributor
- Messages
- 11,674
- Country

As many (most) of us now know, P3D v3 has set up an system of configuration files where they encourage us to place our add-on products.
Moreover, they have even provided command line parameters we can use to automatically add our new paths to these various configuration files! Sweet!
Unfortunately, the SDK documentation is just as opaque as any such has ever been...
Since I had to do this anyway, I've put together a simple batch (.bat) file that will do all the work for you. All anyone needs to do is edit this file to update the drive letter, path, title, etc. to suit their own needs.
This batch file will first make backup copies of these config files:
Here then is my batch file:
Moreover, they have even provided command line parameters we can use to automatically add our new paths to these various configuration files! Sweet!
Unfortunately, the SDK documentation is just as opaque as any such has ever been...
Since I had to do this anyway, I've put together a simple batch (.bat) file that will do all the work for you. All anyone needs to do is edit this file to update the drive letter, path, title, etc. to suit their own needs.
This batch file will first make backup copies of these config files:
- simobjects.cfg
- effects.cfg
- fonts.cfg
- gauges.cfg
- sound.cfg
Here then is my batch file:
Code:
echo
:: Make backup copies of P3Dv3's .cfg files
CD \ProgramData\Lockheed Martin\Prepar3D v3
Copy simobjects.cfg simobjects_back.cfg
Copy effects.cfg effects_back.cfg
Copy fonts.cfg fonts_back.cfg
Copy gauges.cfg gauges_back.cfg
Copy sound.cfg sound_back.cfg
:: Add new path to simobjects.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=SimObjects, Operation=Add, Path=D:\MilvizProducts\SimObjects\Airplanes, Title=Milviz Airplanes, Required=True, Active=True"
:: Add new path to effects.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Effects, Operation=Add, Path=D:\MilvizProducts\Effects, Title=Milviz Effects, Required=True, Active=True"
:: Add new path to fonts.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Fonts, Operation=Add, Path=D:\MilvizProducts\Fonts, Title=Milviz Fonts, Required=True, Active=True"
:: Add new path to gauges.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Gauges, Operation=Add, Path=D:\MilvizProducts\Gauges, Title=Milviz Gauges, Required=True, Active=True"
:: Add new path to sound.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Sound, Operation=Add, Path=D:\MilvizProducts\Sound, Title=Milviz Sound, Required=True, Active=True"
pause


