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
0
votes
0 answers

WinSCP process terminated with exit code 3 and output ""

Our .NET application uses WinSCP software to work with SFTP servers. It's running on different machines, however 1 week ago 2 of them started to fail with the following exception: WinSCP.SessionLocalException, WinSCP process terminated with exit…
0
votes
0 answers

WinSCP Returns 'Access Denied' From WCF Service

I am trying to connect to an SFTP server using WinSCP. When I do it in a Win forms app it connects no problem. However, using exactly the same code in a WCF service returns 'Access Denied'. I have checked repeatedly that Protocol, HostName,…
GlenW
  • 13
  • 1
  • 6
0
votes
1 answer

Does WinSCP Session.GetFiles check if file is finished uploading?

I'm using WinSCP .NET assembly library to perform some SFTP operations - downloading files from SFTP location. Do you know if method Session.GetFiles of the WinSCP library checks if file is not corrupted before downloading it - I mean the situation…
Snorlax
  • 787
  • 2
  • 9
  • 22
0
votes
0 answers

WinSCP .NET Assembly FTP server does not release session when connection is closed

I am trying to do a simple download of some files from an FTP server. I am using the .NET Assembly that WinSCP provides. The source FTP server has a setting that does not allow more than 3 sessions, so I need to disconnect once the files are…
KevAlert
  • 9
  • 2
0
votes
0 answers

WinSCP Session.ExecuteCommand does not wait for tomcat5_3 stop/start to finish

I want to control status of my Tomcat server from ASP.NET. So basically I execute the following commands: sudo /etc/rc.d/init.d/tomcat5_3 status sudo /etc/rc.d/init.d/tomcat5_3 stop sudo /etc/rc.d/init.d/tomcat5_3 start I use a simple call of…
user3863616
  • 185
  • 1
  • 9
  • 24
0
votes
1 answer

WinSCP .NET assembly - Session output gets too big

I am using the WinSCP .NET assembly in order to "monitor" on a FTP server, and download every file that is uploaded to the FTP server. After leaving my program running all night, the ram usage was over 1gb, and after debugging and checking with…
user5441417
  • 101
  • 3
  • 9
0
votes
1 answer

WinSCP .NET assembly - GetFiles root directory non-recursive (without subdirs)

I'm trying to download files from a directory, without the other directories in the wanted directory. I've searched over the Internet for an answer, and the only thing I found is to use FileMask "|*/" in TransferOptions, which isn't working, and…
user5441417
  • 101
  • 3
  • 9
0
votes
1 answer

Disallow SCP fallback via WinSCP .NET assembly API

I'm using WinSCP .NET assembly to upload files. I'm using SFTP and I'm unable to upload files to one of my SFTP servers. However, I'm able to upload to the same server when 'Allow SCP fallback' option is unchecked. Is there any way to set this…
Thusitha
  • 165
  • 1
  • 12
0
votes
2 answers

WinSCP Move file after upload with C#

I am creating an SFTP upload program. It is working great, it connects to the remote SFTP server and uploads the files as intended. The issue I am having it I want the files once uploaded moved to a new directory on the local server. I have…
James Studer
  • 37
  • 1
  • 6
0
votes
1 answer

Any method to check whether file is still in use on FTP location before downloading it locally

I am downloading files from FTP using WinSCP .NET library. My code is session.ExecutablePath = _appSettings["ApplicationFolderPath"] + "WinSCP.exe"; session.Open(sessionOptions); var obj =…
Kamran Shahid
  • 3,954
  • 5
  • 48
  • 93
0
votes
1 answer

WinSCP -nopreservetime switch in .NET assembly in PowerShell

I am trying to add -nopreservetime to this code. I am not sure where or how to add it, I have tried different things to no result. # Setup session options $sessionOptions = New-Object WinSCP.SessionOptions $sessionOptions.Protocol =…
0
votes
1 answer

WinSCP .NET assembly Skip failures

I'm trying to download a complete folder via WinSCP. However there can be files that I do not have permission to download in them. /www/ /www/file1 <-- No permission /www/file2 <-- Permission /www/…
Timo Willemsen
  • 8,717
  • 9
  • 51
  • 82
0
votes
0 answers

How to resolve the error of service?

I have a .NET project [scenario] in which I: Downloaded files from WinSCP.com library in .NET Parsed them, created tokens, inserted them into a SQL-DB using LINQ to SQL. The problem is during converting it into a service. The downloading part goes…
Asif Mehmood
  • 964
  • 2
  • 14
  • 35
0
votes
1 answer

WinSCP update C# progress bar

I am having issues in knowing the percentage of a file sent at any point the FileTransferProgressEventArgs event is fired using WinSCP .NET assembly in C#. The FileProgress returns only 0 or 1, or the documentation said (0-1) which I don't…
0
votes
0 answers

Program Control lost after WinSCP put-files method call

Am using WinSCP for sFTP and FTP file transfer - with following code : // Setup session options SessionOptions sessionOptions = new SessionOptions { Protocol = WinSCP.Protocol.Sftp, …
Murali Uppangala
  • 884
  • 6
  • 22
  • 49