Does anyone knows a command line "kill process" program that works on windows me?
need to write a batch for a friend to restart a progam at intervals
tnx
|
Full Version: Win 9x Command Line Kill Program?
Does anyone knows a command line "kill process" program that works on windows me?
need to write a batch for a friend to restart a progam at intervals tnx
You could try ProKill, i've never tested it on ME, but hey, who knows, perhaps it'll work
Source is included btw...
sorry to say, I tried pk (It's the first thing I tried)
Only tried 'pk -l' to list processes, but no process shows up didn't try 'pk -n process name' > should have done so. Don't have a ME running at home so I'll have to try it at my friends house. unless someone got 9x/me running and could test this sysinternals pskill won't work on 9x/me either > CODE C:\Documents and Settings\bon1>pskill PsKill v1.03 - local and remote process killer Copyright (C) 2000 Mark Russinovich http://www.sysinternals.com PsKill terminates processes on a local or remote NT system. tnx anyway
I might try using a vbs like this
CODE strproc = "notepad.exe" strComputer = "." On Error Resume Next Set objWMIService = GetObject( "winmgmts://" & strComputer & "/root/cimv2" ) Set colItems = objWMIService.ExecQuery( "Select * from Win32_Process", , 48 ) For Each objItem in colItems If LCase( objItem.Caption ) = LCase( strproc ) Then objItem.Terminate End If Next WScript.Quit(0) but can't test it right away
cant you go to system32 or something and use taskkill or something around that name, ive used it on xp through a batch script before, dont know about ME tho.
-toe
taskkill doesn't seem to be available on windows 2000, so I doubt it would work on ME.
but tnx anyway cause I hardly ever work on xp and didn't know about it at all...
I have written a taskkiller that should work for all windows versions. will post the code when I'm at home
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
|
|