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
2 answers

The application requires that assembly WinSCP Version 1.0.6.3261 be installed in the Global Assembly Cache (GAC) first

I have started to use WinSCP .NET assembly within my apps to enable SFTP transfers. All is well and the code works very well. My issue comes from deployment. Firstly, I installed WinSCP via NuGet package manager (version 5.7). As stated, the code I…
gilesrpa
  • 969
  • 1
  • 12
  • 35
0
votes
1 answer

Using a class instance created in one method from an another method

I've been fumbling with WinSCP for a few days here now, and all I am missing is to "Open the Session" correctly. Here the Session is initialized. Private Sub Loginbutton_Click(sender As Object, e As EventArgs) Handles Loginbutton.Click mySession…
PiperMp3
  • 53
  • 9
0
votes
1 answer

Load/save documents to SFTP Linux server with VB.NET

So I am using Visual Studio 2013 (Community) And so far I've build a program that can create files using textboxes and so forth. It saves to XML, and hopefully reads from XML (Even if I am getting access denied) The time has come for the…
PiperMp3
  • 53
  • 9
0
votes
1 answer

Compare file after transfer using WinSCP .NET assembly

I am using WinSCP .NET assembly to transfer files from Windows to Unix server (mostly .doc files). Sometimes the file is transferred as blank document. But the source has come content in it. I can't go for directory level synchronization because am…
Suressh
  • 15
  • 7
0
votes
1 answer

referencing WinSCP COM library from VB6

I am trying to use the WinSCP COM library on a old VB6 project I have (it's a legacy application that generates an OCX file, I think we have to use VB6 for it but not 100% sure). Anyway we want to implement SFTP, and WinSCP can do that readily. I…
Rob
  • 2,363
  • 7
  • 36
  • 54
0
votes
1 answer

WinSCP How to check error codes in C#

I am using WinSCP to download a file from SFTP and this is my code. SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Sftp, HostName = ConfigurationManager.AppSettings["SFTPDomain"], UserName =…
Coder
  • 169
  • 7
  • 17
0
votes
1 answer

How to make WinSCP .NET assembly perform faster?

Has anyone come up with speed performance using WinSCP .NET? I try the C# WinSCP example in http://winscp.net/eng/docs/library#csharp. I note that when it starts up, it takes some 30 seconds to reach the first statement (the initialization of…
0
votes
1 answer

Unable to download file into directory using WinSCP .NET assembly

I'm implementing the WinSCP .NET Assembly for SFTP functionality. I am able to establish a session, list directories and download files to \bin\x86\Debug, but for some reason I am unable to download files into directory bin\x86\Debug\edi on my local…
Robert H
  • 11,520
  • 18
  • 68
  • 110
0
votes
1 answer

How to recompile WinSCP without Finalizer

I need to use WinSCP in a SqlServer context (yes, I know this is not a good idea). The problem with WinSCP in a Sql Server context is that Finalizers are not allowed. I know C#, but not C++, so am looking for some guidance on how to proceed with…
Greg Gum
  • 33,478
  • 39
  • 162
  • 233
0
votes
1 answer

Can't access the timestamp of remote file using WinSCP

I'm using the WinSCP .NET assembly to programmatically connect to a remote server and get the timestamp (or last update date) of a particular file. I have not been successful in finding a method call.
MikieIkie
  • 80
  • 6
-1
votes
0 answers

PowerShell - Poor Performance with Very Large Array

I’m getting unexpected slowdowns when processing a very large Array in PowerShell. I use Get-ChildItem to obtain an Array of FileInfo objects; the resulting Array has about 75,000 elements. I then start uploading the files with a foreach ($file in…
aksarben
  • 588
  • 3
  • 7
-1
votes
1 answer

WinSCP .net library - Protocol.Ftp - System.FormatException Invalid length for a Base-64 char array or string

I have SFTP working, just to trying to add Ftp to our existing program. Is SshHostKeyFingerprint recommended for Ftp protocol the same as with SFtp? If needed, how would I format this key? Does it need a prefix like…
NealWalters
  • 17,197
  • 42
  • 141
  • 251
-1
votes
1 answer

Compare local and remote files using WinSCP .NET assembly

I'm trying to implement some logic to compare file information between remote server and local server. I need to compare the file name between local folder and remote folder and download only the new files. I tried using loading files in a list and…
Nitz
  • 21
  • 1
-1
votes
2 answers

WinSCP fails to run as a WebJob on Azure App Service

I've developed a .Net console application to run as a webjob under Azure App Service. This console app is using WinSCP to transfer files from App Service Filesystem to an on-prem FTP Server. The connectivity between App Service & the on-perm FTP…
-1
votes
1 answer

Session.getfiles() not working correctly - Powershell

Trying to run the following script. Connect to a ftp / sftp server and get the files from a remotepath to a localpath Since there are a list of sources and destinations, I decided to create a csv file and pass the value using $.Source and…
user 9191
  • 717
  • 4
  • 11
  • 31
1 2 3
22
23