Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Is there a better way to set a program's affinity in Windows 8?


  • Please log in to reply
3 replies to this topic

#1 MJPRCE

MJPRCE

  • Members
  • 35 posts
  • OFFLINE
  •  
  • Local time:11:41 AM

Posted 02 October 2013 - 07:23 AM

Hi all,

 

Not much luck with the last issue I had with Games For Windows Live, but now I have an issue that I feel certain some of you folks would be able to solve!

 

I'm aware of how to change the affinity of a program using the ol' task manager (not that it's old, it's certainly new and different in comparison to 7's), but I'm after a way of setting the affinity for a program *before* it's launched by clicking the icon for it or what have you.

Can this be done somehow via the program's shortcut properties and if so, how? If not, are there any ways you can think of that would enable me to set a program to use two of four cores prior to launching the program?

 

Thanks in advance!



BC AdBot (Login to Remove)

 


#2 Sirawit

Sirawit

    Bleepin' Brony


  • Malware Response Team
  • 4,161 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Thailand
  • Local time:05:41 PM

Posted 02 October 2013 - 07:48 AM

Change Shortcut Target from something like this :

C:\Program Files\test\run.exe

to this :

C:\Windows\System32\cmd.exe /C start /affinity 1 C:\Program Files\test\run.exe

When 1 represent CPU 0, if you change number to 2 it will be CPU 1 etc.

 

Problem is I think there cannot be spaces in path, and double quotes trick not work.

 

See HowToGeek Website here : http://www.howtogeek.com/howto/windows-vista/start-an-application-assigned-to-a-specific-cpu-in-windows-vista/

 

Thank you.


If I don't reply back to you in 2 days, feel free to send me a PM.

 

“You’re lying… just like you were lying to me before. You have to hate me. I’ve been the worst daughter in the world… you should hate me.”

“But I don’t, Nyx. Because, Nyx, I’m your mother, and a mother will always love her daughter, no matter what.” -Past sins by Pen stroke.


#3 MJPRCE

MJPRCE
  • Topic Starter

  • Members
  • 35 posts
  • OFFLINE
  •  
  • Local time:11:41 AM

Posted 02 October 2013 - 10:21 AM

I was going to say something else in relation to the post you just left Sirawit but I can see where you're coming from by using the cmd.

However, would it not be possible to just set the affinity in the shortcut without having to use cmd to do it?



#4 Sirawit

Sirawit

    Bleepin' Brony


  • Malware Response Team
  • 4,161 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Thailand
  • Local time:05:41 PM

Posted 02 October 2013 - 10:24 AM

I didn't mean you need to use cmd to do it, I mean you paste my commands in shortcut target and then it will automatically set affinity for you.

If I don't reply back to you in 2 days, feel free to send me a PM.

 

“You’re lying… just like you were lying to me before. You have to hate me. I’ve been the worst daughter in the world… you should hate me.”

“But I don’t, Nyx. Because, Nyx, I’m your mother, and a mother will always love her daughter, no matter what.” -Past sins by Pen stroke.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users