VBS Windows Process Running

Un ottimo script VBS, ottenuto dalla rete, per individuare se un processo windows รจ in esecuzione.

Function Is_Run_Process(strNomeProcessoWindows)

	Dim result
	result = False

	set service = GetObject ("winmgmts:")

	for each Process in Service.InstancesOf ("Win32_Process")
		If Process.Name = strNomeProcessoWindows then
			result = True
		End If
	next

        Is_Run_Process = result

End Function

MsgBox Is_Run_Process("notepad.exe")

Per maggiori dettagli:
http://www.techimo.com/forum/applications-operating-systems/117464-need-vbulletin-script-check-see-if-process-running.html

This entry was posted in VBScript. Bookmark the permalink.