Topic "Using WinSCP in Powershell"

Author Message
John Elia
[View user's profile]
Donor
Joined: 2015-06-22
Posts: 5
Location: Long Island, NY
I have a project and I was so happy that I would be able to use WinSCP and Powershell together. I mean, really excited to dive in an learn/make it happen. For the last week, I'm reading these posts and feel I'm going in circles. The command Add-Type -Path "WinSCPnet.dll" Does not work. Nor does anything else I've seen. The examples are hard to follow and not very helpful. As an IT professional, I thought it would all be a bit easyer to work with WinSCP and Powershell, turns out it's a Nightmare. I'm discouraged and feel like I have to find another solution.

Will someone spell out, how to register WinSCP with Windows, so Powershell can utilize it. And give a simple example of using WinSCP and Powershell to
A) Connect to a remote server via IP address
B) upload A File
C) Close The Connection.

I'll post some examples myself once I get it working. Not sure why it's so difficult then. I'm guessing Most people have become discouraged and stopped trying, hence the lack of real world and useful examples.

John
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
You do not need to register the assembly to use it from PowerShell.

Can you tell us what specific problems are you having? You wrote that Add-Type does not work. What does that mean? How does it behave? Any error message?
John Elia
[View user's profile]
Donor
Joined: 2015-06-22
Posts: 5
Location: Long Island, NY
prikryl wrote:
You do not need to register the assembly to use it from PowerShell.

Can you tell us what specific problems are you having? You wrote that Add-Type does not work. What does that mean? How does it behave? Any error message?


Thank you for your response. I have not registerd the assembly and add-type is working. I appreciate your help.
John
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
I'm glad you made it working.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License