Help building script

Advertisement

supahoopsa65
Guest

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.

Reply with quote

Advertisement

supahoopsa
Joined:
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.

Reply with quote

Advertisement

You can post new topics in this forum