命令行:START /AFFINITY 1 "C:\Path\To\YourProgram.exe" Ref: https://stackoverflow.com/questions/7759948/set-affinity-with-start-affinity-command-on-windows-7