Topic "problem scripting an ftp download"

Author Message
squishy1979
[View user's profile]

Joined: 2015-06-03
Posts: 2
Hey Guys,

This is probably pretty simple for you, but I am having an issue with the -delete switch. I am trying to do a simple script where I simply grab files from an SFTP site. If I remove the -delete from the script listed below, it grabs the files without any issues. The problem is that when I grab the files I need it removed from the SFTP site. I have a batch file that connects to winscp to the SFTP site and loads the following script:

option batch continue
option confirm off
lcd d:\data\import\
Get -delete N*.*

the version of winscp is 4.0.6, but I don't want to upgrade it, as there are other scripts running on the system that I did not set up and I do not want to mess up those scripts.

Any help would be greatly appreciated.
squishy1979
[View user's profile]

Joined: 2015-06-03
Posts: 2
Nevermind guys...I added the rm *.* command to the script and it works now!
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