Questions tagged [winscp-net]

The WinSCP .NET assembly (winscpnet.dll) is a .NET wrapper around WinSCP's scripting interface that allows your code to connect to a remote machine and manipulate remote files over SFTP, FTP, WebDAV and SCP sessions from .NET languages, such as C#, VB.NET, and others, or from environments supporting .NET, such as PowerShell and SQL Server Integration Services (SSIS).

The WinSCP .NET assembly winscpnet.dll is a .NET wrapper around WinSCP's scripting interface that allows your code to connect to a remote machine and manipulate remote files over SFTP, FTP, WebDAV and SCP sessions from .NET languages, such as C#, VB.NET, and others, or from environments supporting .NET, such as PowerShell and SQL Server Integration Services (SSIS).

For details see:

The assembly is also exposed to COM, and as such it can be used from variety of other programming languages and development environments--e.g., WSH-hosted active scripting languages like JScript and VBScript, Visual Basic for Applications (VBA), Perl, and Python.

For details see:

The library is primarily intended for advanced automation tasks that require conditional processing, loops or other control structures for which the basic scripting interface is too limited. The library is not a general purpose file transfer library. It particularly lacks support for interactive processing and as such it is not well suited for use in GUI applications.

Use tag for all WinSCP related questions, along with .

339 questions
1
vote
3 answers

Not able to create instance for WinSCP Session class

I am using WinSCP to download and upload files in C# program. My code look like this public Session OpenSftpSession () { SessionOptions sessionOptions = new SessionOptions (); sessionOptions.Protocol = WinSCP.Protocol.Sftp; …
Darshan Puranik
  • 1,055
  • 3
  • 14
  • 36
0
votes
1 answer

Get info on files transferred with WinSCP in PowerShell

I use this script to get file between two dates via WinSCP. How is it possible to print in the console which files were found on the remote computer and which were not because at the moment I am not sure that all the files have been downloaded…
SySx
  • 51
  • 6
0
votes
1 answer

SFTP using WinSCP .NET timeouts in C# when connecting to port 2222

I can connect to SFTP using the FileZilla in a machine, in the same machine when I try to connect via C# code it gives error as Network error: Connection to "fs2.comparethemarket.com" timed out SFTP port used for connection;2222 Code I am…
Rajesh
  • 1,600
  • 5
  • 33
  • 59
0
votes
0 answers

BizTalk Sftp Receive Location cant get Attributes ( Event Log )

We are using BizTalk Server 2020 with a Receive Location ( Sftp Adapter - Winscp ), which downloads files from a Sftp Server. The Url we poll the files from is: sftp://://* ( so we poll all the files located in root directory ). Every time we poll a…
NDDev
  • 106
  • 5
0
votes
0 answers

Two way files synchronization using WinSCP

Is it possible to perform a 2 way files synchronization using WinSCP, so that any files deleted on the source sftp folder would be deleted on the local folder and vice versa? And any files added to either would sync?
ecuso
  • 71
  • 4
0
votes
1 answer

Change WinSCP PowerShell script to synchronize CSV files over 90 days old only

I would like to change this portion of a PowerShell script which uses WinSCP to connect to an SFTP Server. I would like to modify this script so that in addition to downloading and then deleting .csv files but with the condition if they have a time…
ecuso
  • 71
  • 4
0
votes
1 answer

Configure WinSCP PowerShell script to also include a private key

I would like to add a private key to the code found from the WinSCP website. Based on https://winscp.net/eng/docs/library_example_delete_after_successful_download # Setup session options $sessionOptions = New-Object WinSCP.SessionOptions -Property…
ecuso
  • 71
  • 4
0
votes
1 answer

Downloading files from WinSCP using Python script

How to download multiple files from different location folders from WinSCP server to the local folder using python script? Is there any python module available which I can import and use that to download the files. Note: I am using putty to log in…
0
votes
1 answer

How to achieve Recycle Bin functionality in WinSCP .NET assembly

I have an application where I'm performing Directory Synchronization between Local and Remote directories using WinSCP .NET assembly. Now I want to keep overwritten remote files in the Remote recycle bin path e.g. /tmp/trash I read the documentation…
Nasir Islam Sujan
  • 362
  • 1
  • 3
  • 20
0
votes
1 answer

In C# how to upload file on FTPS server Encryption Type 'Required Explicit FTP over TLS'

I need the expert help. I have written the C# console base application. In which I have to upload the zip file to FTPS server. Every time I am getting the connection refuse error. But when I connect by the FileZilla its connected and working fine. I…
skt
  • 449
  • 14
  • 32
0
votes
1 answer

FileTransferProgress refresh every x seconds WinSCP

Is there a way to refresh the download/upload progress of a SFTP transfer in WinSCP? I know by default is updated every second, but for smaller files, it would be great to refresh every 100ms or so. I am using this progress to update a console based…
EstraPro
  • 13
  • 3
0
votes
0 answers

WinSCP SSH settings

I have a program section like this. However, I get an error on SshHostKeyFingerprint. I don't understand what is supposed to go in here. When I use the WinSCP program and enter the credentials, everything works fine. var host =…
Ivan
  • 7,448
  • 14
  • 69
  • 134
0
votes
1 answer

WinSCP.exe does not match version of this assembly

I tried to update to the latest version of WinSCP. We do have the .exe in our project. I made sure it was the correct version, and it has "Copy" Getting Error: Exception thrown: 'WinSCP.SessionLocalException' in WinSCPnet.dll The version…
NealWalters
  • 17,197
  • 42
  • 141
  • 251
0
votes
2 answers

WinSCP getting password from xml file

I have successfully created a syntax that uses the WinSCPnet.dll (.NET assembly). Also, a config.xml file has been created to provide the credentials and start the session. I do this successfully with everything except the password! Here is the…
Clifford Piehl
  • 483
  • 1
  • 4
  • 11
0
votes
0 answers

Trouble with WinSCP & SISS. Execute Process Task Error

I am having difficultly with grabbing data from our WinSCP site through our SSIS software. Below is the Process I currently have Executable: C:\Program Files (x86)\WinSCP\WinSCP.exe Arguments /script=E:\SSIS\Union Street\SFTP.txt WorkingDirectory…
user16334511