Hi ALL ,
I have vbs code to start/stop indexing services in windows and add catalog,scope using vbs. The vbs code is
--To Start Indexing Service in windows
Set objISAdm = CreateObject("Microsoft.ISAdm")
If objISAdm.IsRunning= False then
objISAdm.start()
end if
--To create catalog Indexing Service in windows
Function AddCatalog(bstrCatName As String, bstrCatLocation As String) As Object
Set objISAdm = CreateObject("Microsoft.ISAdm")
objISAdm.stop()
Set objCatalog = objISAdm.AddCatalog("MyCatalog","c:\Mycatalog")
objISAdm.start()
--To assign scope to a catalog Indexing Service in windows
Set objISAdm = CreateObject("Microsoft.ISAdm")
Set objCatalog = objISAdm. GetCatalogByName("MyCatatlog")
Set objScope= objCatalog.AddScope("C:\myfiles",False)
objScope.Alias = "MyCatalogScope"
I want the same code in C#. How to convert or equivalent classes.