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


Guest
2016-02-07T20:13:55Z
Hello,

I am using the following code (snippit), everything appears correctly in the generated job/task, except that in the FTP task (of type download), in the tab "remote file filter"/"location", the folder text box stays blank.
Am I setting the wrong variable (ftpCom.Download.SourcePath )?

JobClass j = new JobClass();
j.Name = "Buyer 520140828124239 Inbound Step 4.1 (to temp folder)";
j.Group = "Adrian Generated by C# API Group";

TaskClass tc = j.AddTask(TaskClass.TaskT.FTP);
tc.Name = "Step 4.1";

FTPCommandClass ftpCom = new FTPCommandClass();
ftpCom.ConnectionId = UbiQFTP.Id;
ftpCom.CommandType = FTPCommandClass.FTPCommandT.Download;

ftpCom.Download.DeleteSource = true;
ftpCom.Download.SourcePath = "vvv/UbiQPR/UbiQTurkey/Buyers/520140828124239/Inbound";

ftpCom.Download.SourceFileMask = "*";

ftpCom.Download.DestinationPath = "dddC:/UbiQPR/UbiQTurkey/Buyers/520140828124239/Inbound";

tc.FTP.FTPCommands.Add(ftpCom);

s.Jobs.Add(j);

Best Regards,

Adrian.
Sponsor
Forum information
Support
2016-02-08T08:27:26Z
Hi Adrian,

you are looking at some obsolete properties. You should use ftpCom.Download.FileFilter.* properties.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2016-02-08T09:05:38Z
Thank you very much 🙂 you are a life-saver 🙂
Scroll to Top