We are trying to control child processes of our main process by assigning these children to a Job Object. But, if we start the main process from Explorer it is assigned one already hence we cannot assign another Job Object. On the other hand if we execute our main process from the command line, it does not have a Job Object. This can be viewed using Process Explorer and looking at tyhe Process' properties - it eithe rhas a Job tab or it does not. Thats the background to the question, why is it assigning a job object when I execute the app from a folder, but when executed from the command line it does not get a job object?