Current time: 09-09-2010, 04:12 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need batch file to reset dual core affinity.. (Close and mark as solved) | (Mark as unsolved)
08-02-2009, 11:48 PM
Post: #11
Need batch file to reset dual core affinity..
(08-02-2009 11:27 AM)hondabones Wrote:  Why do you have to grab the game's instance? Why can't you just run the affinities?
The ProcessorAffinity property is a property of the Process class object. You can't reference an object's property without first getting an instance of the object. Essentially, you need to grab the process' instance so that PowerShell knows what process to change the affinity for.

Scripting problems? Windows questions? Ask the Windows Guru!

Stay up to date with all of my latest content. Follow me on Twitter!
[Image: tsig.php]
Help us help you! Post your exact error message with these easy tips!
Visit this user's website Find all posts by this user
Quote this message in a reply
08-03-2009, 12:44 AM
Post: #12
Need batch file to reset dual core affinity..
(08-02-2009 11:48 PM)Nilpo Wrote:  
(08-02-2009 11:27 AM)hondabones Wrote:  Why do you have to grab the game's instance? Why can't you just run the affinities?
The ProcessorAffinity property is a property of the Process class object. You can't reference an object's property without first getting an instance of the object. Essentially, you need to grab the process' instance so that PowerShell knows what process to change the affinity for.

I see... Thanks, Nilpo.

undefined
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


Forum Permissions
You cannot post new threads.
You cannot post replies.
You cannot post attachments.
HTML is turned off.
MyCode is turned on.
Smilies are turned on.
[img] is turned on.