May 7, 20197 yr It's really a simple script. First it tries to do something that requires elevated permissions. If that fails it sets the BAT file to run as administrator. There are simpler versions without the initial check that are listed at the previous link that I posted. But why bother? The script works and doesn't delay startup of your apps.
May 7, 20197 yr Never had any issue with running AS4 via bat file on specific cores. All I had to do was verifying that AS_P3Dv4.exe, the .bat file and the shortcut on my desktop had the "run as administrator" flag set. Only one of them without the flag and it will not work. However, I did not check back for some months, I will do now. @ark what I would not do is executing P3D itself via .bat file. Rather use the affinity mask entry inside your prepar3d.cfg... Greetings, Chris AMD Ryzen 7 9800X3D, 2x32GB DDR5 6000MT/s RAM, MSI RTX 4090 Ventus 3X, Windows 11 Home, MSFS2024
May 7, 20197 yr I have some bat files to set the affinity of addons. Then convert the bat file into an exe file. Run the exe as admin Works great.. To convert into exe file, I use http://www.f2ko.de/en/b2e.php Free and easy to use AMD 7 7700X, 32GB DDR5, RTX 5060ti 16GB, 2 x Samsung 1TB NVMe, 1 x 4TB sata SSD, Windows 11 Prof
May 7, 20197 yr 7 hours ago, AnkH said: what I would not do is executing P3D itself via .bat file. Rather use the affinity mask entry inside your prepar3d.cfg... That makes absolutely no difference.
May 7, 20197 yr Author Now that I think about it, since I'm not trying to restrict which cores P3Dv4 uses, I probably don't need to specify an affinity mask for it. I know P3D makes heavy use of core 0 which is why I do restrict the addons from using this core. Al Edited May 7, 20197 yr by ark
Archived
This topic is now archived and is closed to further replies.