I'm writing a program that kills a bunch of processes at once (Windows x64). The main question I have is that I'm trying to figure out how to deal with processes that have spaces in the name. For example in "Creative Cloud Helper.exe". In the console output, I get a message that says "ERROR: Invalid argument/option - 'Cloud.exe'.
Type "TASKKILL /?" for usage.", rather than the process being killed. I don't get this issue with processes that are one word.
The second question I have is how do I find the root process for zombie processes that start themselves?
I assume it was expecting the string of the process name, but it doesn't know where that starts or ends. If quotes are not given, it likely assumes "Creative" is the name then it processes "Cloud" as a keyword which does not exist.
> The second question I have is how do I find the root process for zombie processes that start themselves?
Well if they've installed themselves as a service, there will be no background process as such (unless you could svchost.exe).
Similarly, if they've put themselves into the scheduled tasks list, processes will appear at scheduled times (or events).
If you're trying to stop "bad.exe" from running at all, there's not likely to be "bad_parent.exe" somewhere in the background you can just kill off once and be done.