Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: WINSCP and .Net Assemblies

You can write your VB code to collect list of .end files, replaces the .end with .csv and then call the WinSCP .NET assembly to upload these.
TheDM

WINSCP and .Net Assemblies

Hello! My company has made WINSCP available for use to use. I am working on a project that needs to transfer files to our SFTP site. But there is logic involved in performing the transfers. The machine creating the data files we want to send to our sftp site uses two files. First it creates a .csv file and appends to it as needed. When the machine is finished, it creates a .end file of the same name. So what I would want the program to do is to create a file list of the .END file names and move the files Replace(filename,".END",".CSV") to the sftp site. I saw you can use .Net assemblies. Is it possile to do this within the assembly? or can it only use code from the WINSCP API? Can I use any VB code I want in the assembly :?:

Thanks,
TheDM