hi, can you please let me know does Dataminer script supports PowerShell scripts?
purpose: I am trying to schedule a task that can copy the logging folder weekly to NFS through scripts
$cDate = Get-Date -format yyyy-MM-dd
$NewPath = "\\192.168.10.10\AMS_DTH_A\testams\logs\$cDate"
New-Item -Path $NewPath -ItemType Directory
Copy-Item -Path "C:\Skyline DataMiner\Logging\*" -Destination $NewPath -Recurse
If you have any template script please do share
Thanks
The easiest way to achieve this is by using the supported C# code into DataMiner Automation scripts. The System.IO library can be used to perform similar actions.
Example could be following. Note that the DMA should have permissions on the shared folder.
File.Copy(@"c:\skyline dataminer\info.xml", @"\\LEANDERD\Share\file.xml", true);