Log in

View Full Version : Killing rogue processes under Windows!


Dr Apocalypse
September 12th, 2001, 11:13
How do you kill a rogue process without rebooting windows?

I just ran a DOS prog under WinME and it crashed (surprise!) so I delete it, but it says:

Cannot delete CHFONT.BIN: Access is denied. The source file may be in use.

Taskmanager is useless, so I ran a few utils like procdump, Ramhak to see if any processes were still running but no dice!

Is there something like the 'ps' command Unix has available?

How can I identify what has attached itself to CHFONT.BIN so I can 'kill -9' it

DrA.

tsehp
September 12th, 2001, 14:37
All I can tell you is using the win api and make a prog in c++ , otherwise there are apps on the net that make the same things, but you have to find them.


you can use the terminateProcess api, or either send a wm_quit win msg if this app processes windows msgs.
But if it's frozen into an endless loop, win 9x or win_me are not real preemptive multitask systems, so you can't like unix kill any process you want, unlike (the beloved) win nt.

Dr Apocalypse
September 12th, 2001, 16:01
I never got on with C or C++ so that's out You know in yourself when somethings beyond your ability, C was that stage!

I have got NT4 on a CD somewhere, but the damn thing will probably work under that /:

So it's either find a util to do the job, or reboot Windows! Guess which one I'll end up doing!

I've got some Win API docs though so I'll read up on your suggestions, if only to understand the problem further!

Thanks!

DrA.

tsehp
September 13th, 2001, 02:07
I don't really know in detail what win 9x does to terminate a process, maybe it calls the same api, but for this api to work it must get an handle for it, then free it's resources.
but this app, crashed and doesn't respond to win requests, it just simply won't be closed on win 9x.

Aimless
September 13th, 2001, 03:21
Go to www.sysinternals.com

Download 'pstools.zip'

Open 'pskill.exe' in command prompt

Have PHun

Dr Apocalypse
September 13th, 2001, 13:23
Thanks for the replies!

pstools only works on NT/2000 maybe XP, but not on my OS, WinME so I couldn't use them

I really looked forward to some good old command line useage as well! Would upgrading to WinXP give more control over processes like Unix does? I used to use IBM's AIX in my last job that's why I'm more familiar with a command line environment!

DrA.

tsehp
September 13th, 2001, 14:29
win xp == win2k == win nt, with improvments but the foundations are the same, pure win32 code and now the future m$ standard for win 9x users, good news to me for app's stability.

The commands are all documented but much powerless than real linux system, but if you search for linux look and feel, I remember there are some shells that allows to command a nt4 with kind of linux commands.

Dr Apocalypse
September 15th, 2001, 19:19
Hey, thanks for link Artha, quite a loaded gun this little tool just hope I don't shoot the wrong process!

Have to recreate a 'rogue process' scenario now and try it out, or better still, upgrade to XP like tsehp suggests!

DrA.

Dr Apocalypse
September 16th, 2001, 10:10
W32Dasm not work in XP? F*$K, F*$K and double F*$K!

I like playing in W32Dasm

No W32Dasm, No XP! Simple as that!

Thanks for letting me know

DrA.