Domanda

(Answering my own question for the future / others).

I have a process I'd like to kill by name (in my case from an InnoSetup from Pascal script). My issue is that my process is called MyVeryLongProcessName.exe and I don't have access to taskkill (just tskill).

On Windows XP (embedded) in this case, I tried with the following result:

c:\> tskill MyVeryLongProcessName
Could not find process: MyVeryLongProcessName

But if I renamed the process (and tried to kill it) it worked fine:

c:\> tskill MyShortProcess

My question is / was: how do I kill process with a long process name using tskill?

Nessuna soluzione corretta

Altri suggerimenti

It appears that there is an 18 character limit on the processname parameter, and so with the very long process it was simply rejecting it.

The solution to kill MyVeryLongProcessName.exe is therefore:

c:\> tskill MyVeryLongProcessN

Too many / few characters in the tskill parameter and it will just return a process not found error.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top