User guide
MS-DMT Guide v1.04
Released 05-30-2014
44
Set processor affinity can be set automatically from a batch file down to Windows XP using
Microsoft's Sysinternal's psexec's -a flag.
Usage: psexec [\\computer[,computer2[,...] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-x][-i
[session]][-c [-f|-v]][-w directory][-d][-][-a n,n,...] cmd [arguments]
-a Separate processors on which the application can run with
commas where 1 is the lowest numbered CPU. For example,
to run the application on CPU 2 and CPU 4, enter:
"-a 2,4"
For example:
psexec -a 2 cmd /c "echo.|MSDMT_32.EXE"
Windows7 has affinity for the start command, but XP does not, for example:
start /affinity 2 MSDMT_32.EXE










