Topic "Help building script"

Author Message


First timer here, needing help building an automated script to FTP files.

I need to use SFTP
The FTP server is called:
My Username is: RichardC
My Password is: Test123
My remote directory is: /inbound
My Local directory is: /JCPExtract

I need to move all files with a *.xml to the remote directory and delete them from the local directory.
I then need to move any *_out.xml files from the remote server to the local directory and remove from the remote.

I can use WINSCP from a command prompt manually and get it working, but I cannot script this. Please help.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26912
Location: Prague, Czechia
Please read documentation:

If you are having problems, please be more specific.
[View user's profile]

Joined: 2013-02-25
Posts: 1
Location: Camberley, Surrey, UK
I have resolved this now - thanks to the documentation.
I was having problems opening the sftp server, but found a syntax error in my script.

Thanks for the prompt reply.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License