Windows 10: Starting Application With Affinity

Discus and support Starting Application With Affinity in Windows 10 Support to solve the problem; Greetings Windows 10 1909 I would like to start an application setting its affinity and priority. I currently have several applications setup to... Discussion in 'Windows 10 Support' started by gfd, Dec 9, 2019.

  1. GFD
    gfd Win User

    Starting Application With Affinity


    Greetings

    Windows 10 1909

    I would like to start an application setting its affinity and priority.

    I currently have several applications setup to run from a batch file with high priority. The batch file to run with high priority is as follows:

    start "" "F:\My Music\Program Files\Programs\folder\foo.exe"

    TIMEOUT 5

    wmic process where name="foo.exe" CALL setpriority 128

    exit

    That works for most applications. Where it doesn't, I run the program with the /high argument and delete the wmic line in the batch file. NOTE: obviously, I have changed the application name and its immediate containing folder Starting Application With Affinity :)

    Anyway, I have looked on several sights to learn how to set the affinity of the application on startup, from a batch file. Nothing seems to work. I am sure I am doing something wrong. I created a batch file to run the program using the first 2 cores. Based on what I read regarding affinity, I setup the batch file this way:start "" /affinity 0x2 "F:\My Music\Program Files\Programs\program\foo.exe"TIMEOUT 5

    wmic process where name="foo.exe" CALL setpriority 128

    exit

    When I run this, the program opens. I check task manager: right click the process, go to details, right click then click on priority and it is set to high as expected. Then I click on set affinity. All cores are checked (not what I want). What I typed in the batch file did not deactivate any cores.

    Could anyone show me how to setup a batch file that would set the affinity and the priority? If you can, please do it with a program like notepad.exe and any filename, so that I could see it work.

    Thanks for reading this. Thanks for your help.

    Graham

    :)
     

  2. Affinity Photo Reinstall

    Hello,

    Thank you for writing to Microsoft Community Forums.

    Follow the below mentioned steps to install Affinity Photo:

    1. Open the Windows Store app from the Start menu.

    2. Sign in with the Microsoft account through which you made the purchase.

    3. Search for Affinity Photo in the search bar.

    4. Select the Affinity photo application from the search result.

    5. Click on Install button to install the application.

    Hope it helps.

    Let us know if you got the help you needed by clicking "Yes or No".

    Harish

    Microsoft Community – Moderator
     
    Harish_kum, Dec 9, 2019
    #2
  3. Application Processor Affinity Problem

    Excellent! While the problem is solved, that is a very useful article. Thank You! Funny thing is, I'm frequent visitor to SevenForums and never crossed paths with that page.
    Ruled out the hardware as no other programs are being affected in such a way.
     
    lexluthermiester, Dec 9, 2019
    #3
  4. Yolvi Ell Win User

    Starting Application With Affinity

    CPU / CPU Processor problems / Processor affinity

    We appreciate the information you provided. Your processor is working as expected. CPU affinity is only showing CPU (0) since 1 processor is working at the moment. It's very likely that your computer is using a balanced power plan, so we suggest changing
    your power plan to High Performance by following these steps:

    • Right-click Start.
    • Click Power Options.
    • Choose High Performance.

    In addition to that, we recommend installing the latest updates to keep your system current and secure. Go to
    Start > Settings > Update & Security > Check for updates.

    Some programs may also be automatically launching whenever you boot your computer, affecting the performance. To disable them, follow these steps:

    • Right-click your taskbar.
    • Click Task Manager.
    • Under the Startup tab, find the programs that you don't need.
    • Right-click the program and choose Disable.

    You're also using your computer for a game that was designed to run on an earlier version of Windows, so it's possible that it's slowing down your computer. In this case, use the Compatibility Troubleshooter to find and fix problems with the program using
    these steps:

    • Click Start.
    • Type Troubleshooting and press Enter.
    • Click Run programs made for previous versions of Windows.
    • Click Next.
    • Choose the program from the list and click Next.

    Let us know if you need further assistance with your computer.
     
    Yolvi Ell, Dec 9, 2019
    #4
Thema:

Starting Application With Affinity

Loading...
  1. Starting Application With Affinity - Similar Threads - Starting Application Affinity

  2. The application is not starting correctly

    in Windows 10 BSOD Crashes and Debugging
    The application is not starting correctly: I was trying to install tencent gaming buddy emulator. it's installed perfectly. But now downled the game and it's showing " the application was unable to start correctly 0xc0000005. Please help me with that, I tried it second time, but it's showing again and again.[ATTACH]...
  3. application starting error

    in Windows 10 Customization
    application starting error: one of my application is not starting and saying "Application could not initialize due to some internal error error code-3" please help https://answers.microsoft.com/en-us/windows/forum/all/application-starting-error/8ab0b50c-e0f3-49a7-aaa1-0796d694b325
  4. Starting Application With Affinity

    in Windows 10 Software and Apps
    Starting Application With Affinity: Greetings Windows 10 1909 I would like to start an application setting its affinity and priority. I currently have several applications setup to run from a batch file with high priority. The batch file to run with high priority is as follows: start "" "F:\My...
  5. CPU Core Affinity is getting randomly set to only 2 cores on multiple applications

    in Windows 10 Ask Insider
    CPU Core Affinity is getting randomly set to only 2 cores on multiple applications: Title. One minute I'm sitting there playing Factorio, using all of my CPU cores to simulate the game at 60FPS, and then the game all of a sudden only has two CPU cores assigned to it: 20fps. I get this with multiple processes all the time. Chrome; Spotify; some Windows...
  6. Interrupt affinity policy tool

    in Windows 10 Performance & Maintenance
    Interrupt affinity policy tool: What do you know about this program? From what ive read if used properly the program allows you to bind hardware with a cpu of your choosing. 140947
  7. What is Processor Affinity & how to set Processor Affinity on Windows 10

    in Windows 10 News
    What is Processor Affinity & how to set Processor Affinity on Windows 10: [ATTACH] [ATTACH]When a Program runs in Windows 10, it uses CPU. Most of the computers have a multicore processor. Any Program that you run uses all the CPU cores. In simple words, Windows OS decides how to use the cores for [...] This post What is Processor Affinity & how...
  8. Affinity Photo Reinstall

    in Windows 10 Software and Apps
    Affinity Photo Reinstall: My computer crashed. I had the hard drive replaced. Now, I need to know how I can get the affinity photo program reinstalled on my laptop with windows 10. I originally purchased the program about 8 months ago online and have no idea how to get a re-installation. Any...
  9. Unable to set core affinity

    in Windows 10 Support
    Unable to set core affinity: I've been having a serious problem with the Steam Client Webhelper recently, where I'm in a group voice chat and all of a sudden it's using serious processor time. Just yesterday I was playing in the BFV beta when I noticed sudden system lag, with the fps dropping down from...
  10. Affinity Command in CMD

    in Windows 10 Performance & Maintenance
    Affinity Command in CMD: In past Windows OS's , I was always able to change the CPU affinity with a simple line in a .bat file. Code: start /affinity # program.exe[/quote] # depends on which CPUs you want to run the program with. Now, in Windows 10, this command does not work. I've tried with...