automate FTP upload to remote server

Advertisement

greatvirgo
Joined:
Posts:
1

automate FTP upload to remote server

Hi
I want to automate FTP upload to remote server.As of now I am just trying to run manually using this code;
************************************************************************************************
option batch abort

option confirm off

open bcnas.tsl.telus.com

***** #username
***** #password
option transfer binary

lcd C:\example

cd bcnas.tsl.telus.com\archive\Automated Post Processing Upload

mput "."

close

exit
**********************************************************************

This code does not work.Any suggestions?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: automate FTP upload to remote server

Hard to answer "This code does not work.Any suggestions?". More details would help.

Anyway
1) Path with spaces should be in double-quotes (see "cd")
2) What should "mput "."" do? Do you want it to upload all files in currect directory? Use "put *" for that.

Reply with quote

Advertisement

You can post new topics in this forum