Topic "Help building script"

Author Message
supahoopsa65

Guest


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

I need to use SFTP
The FTP server is called: jobvacancies.ftp.businesslink.gov.uk
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/guide_automation

If you are having problems, please be more specific.
supahoopsa
[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.
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