PowerShell
PowerShell
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat PowerShell Downloads
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
$http = New-Object Chilkat.Http
# Establish 2 cache root directories.
$http.AddCacheRoot("c:/example/httpCacheA/")
$http.AddCacheRoot("c:/example/httpCacheB/")
$("Number of cache roots: " + $http.NumCacheRoots)
$("1st cache root: " + $http.GetCacheRoot(0))
$("2nd cache root: " + $http.GetCacheRoot(1))
# Output:
# Number of cache roots: 2
# 1st cache root: c:/example/httpCacheA/
# 2nd cache root: c:/example/httpCacheB/