Page 1 of 1

bat file

PostPosted: Fri Jul 14, 2017 10:26 pm
by Newtie
Hi Steve-

Quick question; I'm using code that you provided regarding getting ASN (or any weather program) to start with a particular affinity with a bat file. I used this code relevant to my machine/path...

start /B "" /affinity A0 "C:\Program Files (x86)\HiFi\AS_P3Dv4\AS_P3Dv4.exe"

and the app certainly starts, but when I check the affinity thru TaskManager, all 8 cores are running not 7,5. Using AM=85. Any ideas on why this might be happening?

Thanks,
Mark

Re: bat file

PostPosted: Sat Jul 15, 2017 11:16 pm
by Steve Waite
Hi Mark, maybe a good idea to try one of the other examples I've included on the page, let me know.
Regards Steve.

Re: bat file

PostPosted: Sat Jul 15, 2017 11:34 pm
by Steve Waite
...what I generally do first is use the script to start Notepad.exe, see if it's working then slide in place the FS app...

Re: bat file

PostPosted: Mon Jul 17, 2017 1:21 am
by Newtie
Hi Steve-
Used the Win8 Forum link in the AVSIM post regarding all this. Works perfect. Task manager shows the correct mask. Will not take a decimal value but will take a the hex value. See my post over at AVSIM.

Cheers,
Mark

Re: bat file

PostPosted: Mon Jul 17, 2017 2:48 am
by Steve Waite
Yes Mark I saw you got it going. All the best, Steve. :D

Re: bat file

PostPosted: Thu Aug 24, 2017 5:56 pm
by Steve Waite
Don't forget we can start apps with affinity with IF:
- when IF starts
- when the sim is started by IF
- when the sim starts the simconnect client
- and when the sim has completed loading the scenario.

I generally have Saitek panels exe's started by IF at the startup of the simconnect client, keep away from the main sim process core (both LPs) and provide at least two LPs per exe.