WINSCP and .Net Assemblies

Advertisement

TheDM
Joined:
Posts:
1
Location:
Fort Waynem IN

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum