Jump to content
Sign in to follow this  
max2770

Weekend project : Startup batch files

Recommended Posts

Bjoern, the line  Core D = 6 = 00001000 should be Core D = 8 = 00001000, and from there on Core E = 16, Core F = 32, Core G = 64, Core H = 128.

6 in digital should be 00000110 and not 00001000 which is 8

 

Just cross-checked with a post on MSDN and you're right. Seems like the poster on StackOverflow got his numbers wrong.

 

 

New numbers ("associated value" column):

 

http://blogs.msdn.com/b/santhoshonline/archive/2011/11/24/how-to-launch-a-process-with-cpu-affinity-set.aspx


7950X3D + 6900 XT + 64 GB + Linux | 4800H + RTX2060 + 32 GB + Linux
My add-ons from my FS9/FSX days

Share this post


Link to post
Share on other sites

Excellent info in this thread ! :BigGrin:

 

Its good to see the "good old" DOS / Command Mode batch functions discussed as an option, as there is indeed a lot of control which can be achieved via these methods, especially when considering batched use of the:

 

NET command: http://en.kioskea.net/faq/2421-windows-start-stop-a-service-via-the-command-prompt

 

NETSH command: http://support.microsoft.com/kb/242468

 

 

Although quite a lot can be done via these do-it-yourself batch methods, IIRC, it was apparent during more far-reaching use of AlacrityPC to disable / re-enable  selected Windows 'Services' (those not needed during MSFS sessions etc.), extensive testing was required to discover what procedures must be used to successfully control Services:

 

 

* Knowing which Windows Services can be disabled

 

* Knowing which Services are interdependent

 

* Knowing which Services require a specific order for loading / termination

 

* Knowing how long to wait for each Service to "end process" before disabling another

 

...Then:

 

* Knowing which Services can be re-abled without re-starting Windows

 

* Knowing which Services are interdependent

 

* Knowing which Services require a specific order for re-loading

 

* Knowing how long to wait for each Service to "initialize" before re-enabling another

 

AFAIK, AlacrityPC provides "profiles" which incorporate proper sequenced controls of selected Windows services

 

http://sourceforge.net/projects/alacritypc/

 

 

Also, AlacrityPC itself can be started via a batch routine from the command line:

 

"How can I launch a profile programmatically (for example, from a script?)

 

You can launch a profile by starting the program 'alacritypccontrol.exe' located in the folder where you installed AlacrityPC with the following command line:

 

alacritypccontrol.exe -p profile_filename

 

The profile_filename does not have a path, just the filename."

 

 

NOTE: "Profiles" must be in AlacrityPC Profiles folder located in [Windows user account name]\Documents.

 

http://sourceforge.net/p/alacritypc/wiki/FAQ/

 

 

Hope this helps ! :smile:

 

GaryGB

Share this post


Link to post
Share on other sites

Old thread but I have a newbie question.

 

What happens when the exe file has spaces? (AS Cloud Art.exe)

 

Tried quotes but didn't work.

Share this post


Link to post
Share on other sites

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