Okay, I have a few questions about processes.

First question, how would I start a process like text.exe and run commands to it like:
C:\test.exe -command1 -command2

Second question, how can I set a process's affinity using code. For now the app is just running on a dual core, so Core 0 and Core 1.

Third question, I know my application will end up on machines with more than 2 cores, so how can I list all processor cores?