Stealth Posted February 12, 2008 Share Posted February 12, 2008 I would like to delete a specific service using the SDK, but i'm not having any luck finding a script or making one of my own. Does anyone have a script which will achieve this. Thanks in advance -Paul Link to comment Share on other sites More sharing options...
LFA Posted February 13, 2008 Share Posted February 13, 2008 Like this: Dim service As New TCAdminSDK.Objects.Service service.ServiceID = "TCXXXXXXXXX" 'Find in the database If service.Find Then 'Uninstall the service. True = delete game server files. If service.Uninstall(True) Then 'Delete from the database If service.Delete Then 'Success End If End If Link to comment Share on other sites More sharing options...
Stealth Posted February 14, 2008 Author Share Posted February 14, 2008 Like this: Dim service As New TCAdminSDK.Objects.Service service.ServiceID = "TCXXXXXXXXX" 'Find in the database If service.Find Then 'Uninstall the service. True = delete game server files. If service.Uninstall(True) Then 'Delete from the database If service.Delete Then 'Success End If End If Thanks L! Works a treat -though you missed a closing End If Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.