Topic "doubt in uploading a file from local to remote"

Author Message
Ranjani
[View user's profile]

Joined: 2007-01-16
Posts: 1
Location: india
hi!!
i ve written the following batch to copy a file from my local to remote server and named it as transfer.bat

option batch on
option confirm off
open sftp_usertemp@10.237.6.55
cd /home/sftp_usertemp/temp
option transfer binary
put c:\temp2\*.*
close
exit


in the console when i give winscp3 sftp_usertemp@10.237.6.55 /console /script=transfer.bat,
it just logins into sftp, but the target directory is empty....means the file is not getting uploaded....
so do i ve to make any changes to the settings??? or where am i goin wrong??
help me out na.........
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Try to do only:
winscp3 /console /script=transfer.bat
_________________
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