VB Script for App
VB Скрипт за проверка на работещо приложение
Dim objWMIService, colItems, objItem, strComputer, strFlashEXEFile
Dim count
strEXEFileName = "програмата.exe"
strEXEFilePath = "пътя до ехе-то, което ще изпълняваме може и пряк път "
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.InstancesOf("Win32_Process")
count = 0
For Each objItem In colItems
If objItem.Name = strEXEFileName Then
count = count + 1
Else
End If
Next
Set objWMIService = Nothing
Set colItems = Nothing
If count = 0 Then
Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")
Return = oShell.run(strEXEFilePath,1, false)
Set oShell = Nothing
End If
Най-четени
Последно добавени
Категории
-
Altaro Hyper-V Backup
-
Anti Spam Exchange
-
BAT
-
DNS problem in Windows 2008 R2
-
Exchange
-
Ghost image
-
Missing certificate google, yahoo, twitter, facebook
-
MS Office Templates
-
On-line transliterator
-
Pictures to Active Directory&Outlook
-
Regedit
-
Robocopy to NFS share
-
Task Kill remote PC
-
TP-Link & DD-WRT
-
VB Script AD Signature
-
VB script verification of an application running
-
VoIP
-
Windows 2008 R2 printserver Problem
-
Windows 7 Administrative template
-
Windows 7 svhost or microsoft conspiracy
-
Windows installed programs
-
Windows memory performance
-
Windows printer per machine
-
Windows printserver
-
Windows Remote Control
-
Windows USB Restrict