Windows Scripting Forums

Full Version: Need batch file to reset dual core affinity..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(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.
(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.
Pages: 1 2
Reference URL's