Click here to Skip to main content
15,915,093 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Mouse click have a problem Pin
Mekong River2-Jun-06 5:25
Mekong River2-Jun-06 5:25 
QuestionSoftIce on XP Pin
Raza568031-May-06 18:36
Raza568031-May-06 18:36 
AnswerRe: SoftIce on XP Pin
Mekong River31-May-06 21:23
Mekong River31-May-06 21:23 
QuestionStoping process Pin
JCParker31-May-06 3:06
JCParker31-May-06 3:06 
AnswerRe: Stoping process Pin
Mekong River31-May-06 3:39
Mekong River31-May-06 3:39 
GeneralRe: Stoping process Pin
toxcct31-May-06 4:47
toxcct31-May-06 4:47 
GeneralRe: Stoping process Pin
JCParker31-May-06 5:26
JCParker31-May-06 5:26 
AnswerRe: Stoping process [modified] Pin
Mekong River3-Jun-06 6:07
Mekong River3-Jun-06 6:07 
JCParker wrote:
Dose any one have a short script that stops a running process after a short period of time? I have a misbehaving app which spawns processes and dose not always clean up.


Dim cProcesses, oProcess<br />
Set cProcesses = QueryWMI(sName,"root\cimv2","select * from win32_Process where name = '" & wscript.arguments.named("name") & "'","","")<br />
If Not IsObject(cProcesses) Then<br />
	Wscript.Echo " *** Could not retrieve process (or process does not exist) on " & sName<br />
Else<br />
	For Each oProcess In cProcesses<br />
		On Error Resume Next<br />
		oProcess.Terminate()<br />
		If Err <> 0 Then<br />
			Wscript.Echo " *** Error terminating on " & sName<br />
			Wscript.Echo " " & Err.Description<br />
		Else<br />
			Verbose " Terminated on " & sName<br />
		End If<br />
	Next<br />
End If


Give the correct process name. Then save the file with extension wsf (Exmaple: EndProc.wsf).

Then go to the command line type the below command where the EndProc.wsf file reside:

EndProc.wsf /computer:[YourComputerName] /name:[YourEndProcessName]

Or you should look at the Kill command[^].
GeneralRe: Stoping process [modified] Pin
JCParker5-Jun-06 4:41
JCParker5-Jun-06 4:41 
GeneralRe: Stoping process [modified] Pin
Mekong River5-Jun-06 15:13
Mekong River5-Jun-06 15:13 
GeneralRe: Stoping process Pin
super_ttd11-Jun-06 0:46
super_ttd11-Jun-06 0:46 
GeneralRe: Stoping process Pin
Mekong River11-Jun-06 3:52
Mekong River11-Jun-06 3:52 
GeneralRe: Stoping process Pin
super_ttd11-Jun-06 7:11
super_ttd11-Jun-06 7:11 
QuestionSoftware to make image file Pin
Mekong River30-May-06 15:32
Mekong River30-May-06 15:32 
AnswerRe: Software to make image file Pin
JCParker31-May-06 2:07
JCParker31-May-06 2:07 
GeneralRe: Software to make image file Pin
Mekong River31-May-06 3:35
Mekong River31-May-06 3:35 
GeneralRe: Software to make image file Pin
JCParker31-May-06 3:55
JCParker31-May-06 3:55 
GeneralRe: Software to make image file Pin
Mekong River31-May-06 5:24
Mekong River31-May-06 5:24 
QuestionEnumerate Local Machine Users and Groups Pin
JCParker30-May-06 10:08
JCParker30-May-06 10:08 
AnswerRe: Enumerate Local Machine Users and Groups Pin
Mekong River30-May-06 15:20
Mekong River30-May-06 15:20 
GeneralRe: Enumerate Local Machine Users and Groups Pin
JCParker31-May-06 3:56
JCParker31-May-06 3:56 
GeneralRe: Enumerate Local Machine Users and Groups Pin
Mekong River31-May-06 5:21
Mekong River31-May-06 5:21 
QuestionPrinting data to PDF file using driver Pin
mikko laanti30-May-06 8:50
mikko laanti30-May-06 8:50 
AnswerRe: Printing data to PDF file using driver Pin
Chris Meech30-May-06 9:32
Chris Meech30-May-06 9:32 
GeneralRe: Printing data to PDF file using driver Pin
mikko laanti30-May-06 21:54
mikko laanti30-May-06 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.