Topic "Archiving Files on FTP Server after get."

Author Message
GWheels
[View user's profile]

Joined: 2014-12-08
Posts: 1
Location: California
I'm sure this is somewhere and I just can't find it. I need to copy of group of files from an FTP server to my local computer. After I'm done, I want to move the files I've downloaded to an archive directory or maybe just delete them. Not sure yet. What is the script command to move files on the FTP server. Thank you for your time.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Use mv command:
http://winscp.net/eng/docs/scriptcommand_mv
lkubler
[View user's profile]

Joined: 2015-02-18
Posts: 7
Location: Wisconsin
I'm scripting using Powershell and use the $session.MoveFile() method for this purpose. If that is not the correct please let me know.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
That's correct.
See http://winscp.net/eng/docs/scriptcommand_mv#net
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