Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
Disable a Windows Service
Disable a Windows service. Note:This software is available as a pre-release. Download the Chilkat Service ActiveX here: ChilkatService.zip Dim fso, outFile Set fso = CreateObject("Scripting.FileSystemObject") Set outFile = fso.CreateTextFile("output.txt", True) set service = CreateObject("Chilkat.Service") service.ServiceName = "MyService" success = service.Disable() If (success <> 1) Then MsgBox "Failed to disable service." outFile.WriteLine(service.LastErrorText) WScript.Quit End If MsgBox "Windows Service Disabled!" outFile.Close |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.