Jump to content
Sign in to follow this  
ark

Can't Set Affinity Mask for Active Sky with Batch File

Recommended Posts

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.

Share this post


Link to post

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...

  • Upvote 2

Greetings, Chris

Intel i5-13600K, 2x16GB 3200MHz CL14 RAM, MSI RTX 4080 Gaming X, Windows 11 Home, MSFS

Share this post


Link to post

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

 

  • Upvote 1

i7-7700K @ 4.9 GHz, 32GB DDR4, GTX1080, 2 x Samsung 1TB NVMe, 1 x 3TB HDD, Windows 10 Prof

Share this post


Link to post
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.

Share this post


Link to post

 

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 by ark

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...