Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ame02
  •  ame02
  • Paid support Topic Starter
2022-01-11T13:46:11Z
How can i import settings from XML files via API?
Sponsor
Forum information
Guest
2022-02-04T14:10:45Z
The VisualCronAPI.Server class has a method called ImportSettings.
ImportSettings(string strPath, bool bolClearExistingSettings)
strPath must be a .zip file with your xml file(s) inside.
ame02
  •  ame02
  • Paid support Topic Starter
2022-02-08T14:02:50Z
do you know how it works in powershell?
something like this?

# Load the VisualCron API Dlls
$VC = [Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\VisualCron\VisualCron.dll");
$VCAPI = [Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\VisualCron\VisualCronAPI.dll");

# Define Client & Server Objects
$Global:Client = New-Object -TypeName VisualCronAPI.Client
$Global:Server = New-Object -TypeName VisualCronAPI.Server

# Define Connection Object
$Conn = New-Object -TypeName VisualCronAPI.Connection

....

$Global:Server.ImportSettings...


i'm a bit confused
Support
2022-02-08T15:23:23Z
Originally Posted by: ame02 

do you know how it works in powershell?
something like this?

# Load the VisualCron API Dlls
$VC = [Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\VisualCron\VisualCron.dll");
$VCAPI = [Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\VisualCron\VisualCronAPI.dll");

# Define Client & Server Objects
$Global:Client = New-Object -TypeName VisualCronAPI.Client
$Global:Server = New-Object -TypeName VisualCronAPI.Server

# Define Connection Object
$Conn = New-Object -TypeName VisualCronAPI.Connection

....

$Global:Server.ImportSettings...


i'm a bit confused



Hi,

$Server.Settings object contains all the settings, all properties should be updated separately.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top