Hi,
I have a script that generates a .csv file and then emails it to the user. The file is added to /Documents on the DMA where the script is run and so isn't available to the other agents in the cluster when it comes to email the attachment. I need to sync the folder prior to getting the file. Previously, in a connector, I've used the following, but is there a way to do the same in automation?
string sSyncFileDir = filepath.Replace(@"\\127.0.0.1\c$", "c:");
string path = sSyncFileDir;
try
{
protocol.NotifyDataMiner(41/*NT_SEND_DMS_FILE_CHANGE*/, path, 32);
}
catch (Exception ex)
{
protocol.Log("QA" + protocol.QActionID + "|Upload / Download Configuration File|DMASynchronisation|" + ex, LogType.Error, LogLevel.NoLogging);
}
Thanks,
Ross
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?