General discussion

Locked

How to end a program by command-line

By ippacket ·
Can anyone tell me how to end a task or program by command-line for Windows 95/98?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to end a program by command-line

by don.weston In reply to How to end a program by c ...

There is no way native to win 95/98 to kill a process. I do know of a command line utility called kill.exe that will let you kill processes in NT but I'm not sure it would work with 95/98. E-mail me if you want it and I'll send it to you.

Collapse -

How to end a program by command-line

by ippacket In reply to How to end a program by c ...

No joy with kill.exe. Each time the Process runs it could be under a different PID.
Thanks

Collapse -

How to end a program by command-line

by Ann777 In reply to How to end a program by c ...

Since WinNT's "kill" requires a process id number, even if the program works on Win9x, there'd be no way of determining which processes you'd be killing except by trial and error.

You'd have to be awfully lucky to kill the right process, and while guessing at processes IDs, you'd probably kill something that kills windows in the process.

Collapse -

How to end a program by command-line

by ippacket In reply to How to end a program by c ...

PS.exe will give the PID but I have fugured a way to extract the info.
Thanks

Collapse -

How to end a program by command-line

by Joseph Moore In reply to How to end a program by c ...

There is another Resource Kit took, TLIST.EXE, that will list all running processes AND their PID.
So, you could get a copy of TLIST, run that, and then you would have the PID of the application you want to stop.
At that time, run KILL.EXE with the correct PID.

Hope that helps.

Collapse -

How to end a program by command-line

by ippacket In reply to How to end a program by c ...

Yep, thats the one I was speaking of.
Thanks

The closest but a little too late. I'll give you the points.

Collapse -

How to end a program by command-line

by ippacket In reply to How to end a program by c ...

This question was closed by the author

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums