Questions tagged [winscp]

WinSCP is an open source free SFTP, FTP and SCP client for Windows. WinSCP is commonly used by developers to upload their code, such as PHP, to web servers. Beyond this, WinSCP offers scripting and .NET assembly to automate file transfer tasks.

WinSCP is an open source free SFTP, FTP, WebDAV and SCP client for Windows. Its main function is file transfer between a local and a remote computer.

WinSCP is commonly used by developers to upload their code, such as PHP, to web servers.

WinSCP can be used to automate file transfer tasks, either using basic scripting interface or, for advanced tasks, using .NET assembly.

For details see:

For questions specific to the WinSCP .NET assembly, in addition to the main tag use also the .

926 questions
4
votes
1 answer

Importing proxy configuration from WinSCP to IntelliJ

I would like to use IntelliJ to configure my SFTP servers. Unfortunately, I have very complex configurations (SSH tunnels, proxy etc...) that I am currently doing with WinSCP. Is it possible to import the exported WinSCP configurations into…
Lore
  • 648
  • 1
  • 10
  • 35
4
votes
1 answer

"Upload of file '...' was successful, but error occurred while setting the permissions and/or timestamp" when using WinSCP .NET assembly in PowerShell

Exception calling "Check" with "0" argument(s): "Upload of file '2019-06-11.zip' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn off setting permissions or preserving…
user3542587
  • 199
  • 1
  • 13
4
votes
1 answer

Method not found exception (EventWaitHandle..ctor) using WinSCP .NET

I am trying to connect to SFTP server using PowerShell, and using WinSCP .NET assembly. Code is not able to open the session ($session.Open($sessionOptions)). In the logs I found, Exception: System.MissingMethodException: Method not found: 'Void…
Ktn Patel
  • 101
  • 4
4
votes
2 answers

PowerShell SFTP Download without Writing Files to Disk

I am trying to use PowerShell to Sync Payroll files stored on SFTP to SharePoint. I have most of the code written, the only thing I can't figure out is if there is a way to avoid temporarily downloading the file to the disk. Given the sensitivity of…
Eric Weintraub
  • 648
  • 5
  • 17
4
votes
2 answers

Is there a good way having two SQL Server Databases on Different machines synched daily?

What i would like to achieve is have two different SQL Server Databases, on two different servers running the same SQL Server Version( SQL Server 2008 R2 RTM - 10.50.1600.1 ) to be synched daily. Synched meaning just transferring the new data ( or…
4
votes
2 answers

"Cannot execute script because the script entry point is invalid" error in script task in SSIS

I am trying to upload files from my local folder to SFTP using SSIS Script Task. On replicating the script from https://winscp.net/eng/docs/library#csharp I get an error Error: Cannot execute script because the script entry point is invalid.…
mehtat_90
  • 536
  • 7
  • 26
4
votes
1 answer

Download files from SFTP server using PowerShell

I need to download files from SFTP server to a local machine using a PowerShell script. The API/library that will be used for the download needs to be able to monitor results of the transfer, log the transfer, and also to archive/move the downloaded…
Ratnesh Sharma
  • 95
  • 2
  • 2
  • 9
4
votes
1 answer

Use path with spaces in batch file using WinSCP

I have created WinSCP batch file for deleting files on remote server. It's working fine, but it's not working with folder with spaces. For example, the below batch file is working: cd C:\Program Files\WinSCP winscp.com /command ^ "open…
4
votes
4 answers

Convert a batch-file command with complex arguments to PowerShell

I have the following in .bat that is (this works): "%winscp%" /ini=nul ^ /log=C:\TEMP\winscplog.txt ^ /command "open scp://goofy:changeme@10.61.10.225/ -hostkey=""ssh-rsa 2048 d4:1c:1a:4c:c3:60:d5:05:12:02:d2:d8:d6:ae:6c:5d"""…
Be Kind To New Users
  • 8,043
  • 10
  • 63
  • 102
4
votes
2 answers

Using VBA to run WinSCP script

I am able to download files from SFTP in CMD window, by using following code: WinSCP.com # Connect to the host and login using password open user:pw@address # get all the files in the remote directory and download them to a specific local…
NewGuyComesIn
  • 189
  • 2
  • 13
4
votes
1 answer

WinSCP .NET assembly SynchronizeDirectories: Upload of file ... was successful, but error occurred while setting the permissions and/or timestamp

I am using WinSCP .NET Assembly in PowerShell for file synchronization with a SFTP server. I am using the following code for synchronization: http://winscp.net/eng/docs/library_session_synchronizedirectories#powershell Problem is, when this script…
cloudify
  • 73
  • 1
  • 7
4
votes
1 answer

How to upload a file to Azure Storage with WinSCP (SFTP)?

theI have a C# service using WinSCP which reliably uploads files to any SFTP server. I'd like to use it to connect to MS Azure Storage and upload files there using the same SFTP protocol. Please note I am not looking to use any other protocol (i.e.:…
Milan
  • 2,893
  • 1
  • 29
  • 43
4
votes
3 answers

SSIS C# 2012 Script Task referring WinSCPnet.dll fails when run from SQL Server Agent with "Exception has been thrown by the target of an invocation"

I have an SSIS package (created in VS 2013) that contains a C# 2012 Script Task. The job of the script task is to download a file from an SFTP server using WinSCP .NET assembly and place it on my server (Windows Server 2012 R2 with SQL Server…
4
votes
1 answer

Execute Process Task in SSIS to copy file from remote to local using WinSCP executable

I have a file StockExchangeData.txt in my remote server. I am trying to get it to my local drive C:\User\KD\ExchangeData using WinSCP (FTP). In my SSIS, I have an "Execute Process Task". In its Process tab, I am using Executable as C:\Program Files…
Kuldip.Das
  • 127
  • 1
  • 2
  • 10
4
votes
2 answers

Setting WinSCP with explicit TLS encryption

I am trying to connect to a FTP server with following setting This setting works well and I can connect to FTP server via GUI (version 5.7.5) However, when I try to convert these settings to script winscp.com /command "option batch abort" "option…
wraith
  • 241
  • 3
  • 15