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 .

271 questions
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
  • 8
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,147
  • 5
  • 33
  • 49
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
  • 5
  • 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…
user3454439
  • 587
  • 8
  • 25
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
  • 10,659
  • 17
  • 63
  • 102
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
  • 25,941
  • 27
  • 127
  • 194
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
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
  • 597
  • 1
  • 9
  • 22
-1
votes
2 answers

How to fix WinSCP error 'System.Xml.XmlException: Root element is missing' on SFTP Port

I'm getting the following error on our BizTalk 2016 instance with a SFTP receive port when it polls to connect to a SFTP site: The Messaging Engine failed to add a receive location "OURPORTNAME" with URL…
Andy Midd
  • 79
  • 8
-1
votes
1 answer

WinSCP .net assembly not honoring include file mask

I'm using WinSCP .net assembly to download some files off of a ftp server. I want to restrict the download to Only the top level directory, ie. no sub directories Only .csv files To accomplish this I'm using the include/exclude file masks…
reggaemahn
  • 4,932
  • 5
  • 26
  • 53
-1
votes
2 answers

Error on Session.Open in Winscp - VBA

Hi I am trying to upload the file in WinSCP via VBA. the mySession.Open mySessionOptions got Error - Network error connection to "103.231.8.66" time out. i googled but didn't get idea. any suggestion would appreciated Sub test() Dim wbs As…
Ashok
  • 244
  • 1
  • 5
  • 18
-1
votes
1 answer

Get database from /var/lib/mysql

I am trying to get a database from a Linux box and am doing it using WinSCP .NET assembly with the following code: SessionOptions sessionSettings = new SessionOptions { Protocol = Protocol.Scp, HostName = "******", UserName = "*****", …
Lotzi11
  • 373
  • 1
  • 8
  • 21
-1
votes
1 answer

Load picture from FTP to PictureBox with WinSCP .NET assembly

I am using WinSCP .NET assembly to transfer files by FTP. Couple days ago I developed new module to show pictures in PictureBox control. What I would like to achieve is to list picture's paths inside listbox or whatever else and then when click on…
Arie
  • 1,485
  • 3
  • 15
  • 35
-2
votes
1 answer

Object reference not set to an instance of an object when opening WinSCP session

I have a PowerShell script that uses the WinSCP .Net library to get some files from a FTP server. The script runs automatically over night on a server from a administrator account using Task Scheduler. The problem is that sometimes (it does not have…
MrGuwee
  • 1
  • 3
1 2 3
18
19