Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

supahoopsa

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.
supahoopsa65

Help building script

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.