Windows 8 and 8.1 Forums


CPU Affinity Shortcut for a Program - Create in Windows

  1. #30


    Posts : 22,623
    64-bit Windows 10


    Hello Tony, and welcome to Eight Forums.

    I haven't tested with multiple processors, but you you should be able to use the same steps. You would just have a 56 digit binary number for step 1.

    To verify, check to see what the CPU affinity shows for the running process after running it from the shortcut.

      My System SpecsSystem Spec

  2. #31


    Posts : 2
    Windows 10


    Using the following test item:

    C:\Windows\System32\cmd.exe /c start "Chrome" /affinity 80000000000000 "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" (aiming for the 56th thread)

    I get:

    Name:  uhoh3.png
Views: 245
Size:  19.4 KB

    It works! Thanks so much!
      My System SpecsSystem Spec

  3. #32


    Posts : 22,623
    64-bit Windows 10


    Great news.
      My System SpecsSystem Spec

  4. #33


    Posts : 4
    windows10 pro


    Hello Brink,i treid to change affinity but did't work.I tried c:\Windows\system32\cmd.exe /c start /affinity 1 notepad.exe,it worked.I want to change affinity of MetaTredaer4 of XM,I tried below

    c:\Windows\system32\cmd.exe /c start "terminal" /affinity 1 "c:\fx\xm\terminal.exe"
    (I installed some MT4,so I installed MT4 of XM in this folder(c:\fx\xm).)
    but it tells me that windows cannot find "terminal.exe".

    Full path of application is correct,is the program name wrong?
      My System SpecsSystem Spec

  5. #34


    Posts : 22,623
    64-bit Windows 10


    Hello devinori, and welcome to Eight Forums.

    If you set the CPU Affinity for "terminal.exe" via Task Manager instead, is able to do so using that method?
      My System SpecsSystem Spec

  6. #35


    Posts : 4
    windows10 pro


    Yes,I can set affinity for "terminal.exe" via task manager.
      My System SpecsSystem Spec

  7. #36


    Posts : 22,623
    64-bit Windows 10


    In that case, it should work with the command as well. Odd.

    If you "open file location" from Task Manager and copy path for terminal.exe, does it show the same path you posted?
      My System SpecsSystem Spec

  8. #37


    Posts : 4
    windows10 pro


    I open "file location" and copy the path,it is same I posted.
    I don't know the cause of my trouble.
    Because my windows is japanese ver.?(but the path doesn't include japanese character...)
      My System SpecsSystem Spec

  9. #38


    Posts : 4
    windows10 pro


    I don't know why,but I reboot my computer and try again,affinity is changed!!
    Thanks to Brink I can change affinity!
    Thanks so much!
      My System SpecsSystem Spec

  10. #39


    Posts : 22,623
    64-bit Windows 10


    Odd, but I'm glad to hear you got it sorted.
      My System SpecsSystem Spec

Page 4 of 4 FirstFirst ... 234
CPU Affinity Shortcut for a Program - Create in Windows
Related Threads
How to Create a Shortcut to Run an Application with a Specific CPU Priority in Windows Windows shares the processor time between all running processes based upon their priority level. If a process has a higher priority, it gets more processor time compared to a process having a lower priority....
How to Create a "Facebook" App Shortcut in Windows 8.1 The Facebook app for Windows 8.1 is now available to download in the Windows Store. With Facebook for Windows 8.1, you get direct access to your Facebook News Feed right from your Start screen where you can stay connected with your...
How to Create a Calculator App Shortcut in Windows 8.1 The Calculator app included in Windows 8.1 is a simple yet powerful app that includes a standard calculator, a scientific calculator, and a unit converter. Whether you’re using it to add up a bill, convert a recipe, or complete algebra,...
How to Create a Reader App Shortcut in Windows 8.1 The Reader app is included in Windows 8.1 by default and helps you open and view PDF, XPS, and TIFF files. Reader lets you search for words or phrases, take notes, fill in forms, and print or share documents. For more information, see: ...
How to Create a Photos App Shortcut in Windows 8 and 8.1 The Photos app is included by default in Windows 8 and brings all of your pictures and home movies together in one place - even if they're on Facebook, Flickr, OneDrive, or another PC. For more information, see: Photos app for Windows...
How to Create a "Switcher" Shortcut in Windows 8 and 8.1 This tutorial will show you how to download and use a "Switcher" shortcut that opens directly to the Switch List bar to easily switch between opened Metro apps, Metro screens, and desktop in Windows 8, Windows RT, Windows 8.1, and...
How to Create a "Run" Command Dialog Box Shortcut in Windows 8 This tutorial will show how to create or download a Run shortcut that opens directly to the Run command dialog box on your desktop in Windows 8. The default keyboard shortcut to open the "Run" command dialog box is: Windows + R ...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook