[Visual Basic 6.0]The following code shows how to use the CreateServerDirectory and AddServerDirectory methods to add a directory to your GIS server:
Dim pGISServerConnection As IGISServerConnection
Set pGISServerConnection = New GISServerConnection
pGISServerConnection.Connect "melange"
Dim pServerObjectAdmin As IGISServerObjectAdmin
Set pServerObjectAdmin = pServerConnection.ServerObjectAdmin
Dim pSDir As IServerDirectory
Set pSDir = pServerObjectAdmin.CreateServerDirectory
pSDir.CleaningMode = esriSDCByFileAge
pSDir.Description = "Default output directory"
pSDir.Path = "\\melange\serveroutput"
pSDir.URL = http://melange/serveroutput
pSDir.MaxFileAge = 100
pSOM.AddServerDirectory pSDir
[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button
in the upper-left corner of the page.