Home Page Bahamas Software Bahamas Real Estate Bahamas Writer Business Services Contact Us

Computer Repair
Tel: 242-364-9183
Nassau, Bahamas
Bahamas Video Surveillance . Bahamas CCTV . Bahamas Infrared . Bahamas Digital Video . Bahamas Remote Video . Bahamas Burglar Alarm . Bahamas Technician
Bahamas Real Estate
Bahamas Yellow Pages


Free Software:


We Recommend:
MediaFire - Free File Hosting Made Simple
Follow us on:
Twitter Twitter
Run Services
'// VBSCRIPT
Option Explicit

'// TEST FUNCTION - TURN OFF THEMES
If RunService("Themes", False) Then
    MsgBox "Themes Turned Off"
    '// TURN THEMES BACK ON
    If RunService("Themes", True) Then MsgBox ("Themes Back on")
Else
    MsgBox "Error"
End If

'// START OR STOP A WINDOWS SERVICE
Function RunService(Name, Enabled)
    Dim colServices, objService, ret
    On Error Resume Next
    Set colServices = GetObject("winmgmts:").ExecQuery _
        ("Select Name from Win32_Service where Name = '" & Name & "'")
    For Each objService In colServices
        If Enabled Then
            ret = objService.StartService()
        Else
            ret = objService.StopService()
        End If
    Next
    If ret = 0 Then
        RunService = True
    End If
End Function


 

Bahamas CCTV . Bahamas DVR . Bahamas Camera . Bahamas Video . Bahamas Computer Repair . Bahamas Software . Bahamas Business . Bahamas Real Estate
Copyright (c) 2001/2010 BahamasSecurity.com