I know this is an old thread, but here's the easy answer that didn't come up. WinXP (and also Vista, I believe) has a utility included called start. This utility can be used to run a program with a specified cpu affinity. the command would look like this:
start /affinity xx myprogram.exe
Use the actual name of the program you want to run, of course, and substitute xx for a hex number representing the affinity you want as follows:
01 - 1st CPU
02 - 2nd CPU
03 - 1st and 2nd CPU
04 - 3rd CPU
05 - 1st and 3rd CPU
...
etc
start /affinity xx myprogram.exe
Use the actual name of the program you want to run, of course, and substitute xx for a hex number representing the affinity you want as follows:
01 - 1st CPU
02 - 2nd CPU
03 - 1st and 2nd CPU
04 - 3rd CPU
05 - 1st and 3rd CPU
...
etc