Topic "automate FTP upload to remote server"

Author Message
greatvirgo
[View user's profile]

Joined: 2012-10-19
Posts: 1
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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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.
_________________
Martin Prikryl
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