Topic "Opening Multiple Sessions in PowerShell Script"

Author Message
JasonRkr
[View user's profile]

Joined: 2013-07-24
Posts: 13
Location: Sunny Southern California
Group,

Hello and Happy Friday to you all.

Is it possible to open multiple sessions in a PowerShell script? If so, can someone point me to an example? I need to pull files from one UNIX server and then upload them to another.

Thanks,

J
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Of course. Just create multiple instances of Session class. You can run them in parallel (from multiple threads) or in sequence. As you like.
_________________
Martin Prikryl
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