Topic "PUT in scripting with v4"

Author Message
Frank

Guest


Hey ... i am very confused ...
GET is no problem and its ok

PUT, i have some trouble, no ideas. Here my little script:
Code:
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on

# Disable overwrite confirmations that conflict with the previous
option confirm off

# Connect
open XXXXXXXXXX

# Force binary mode transfer
option transfer binary

# Upload the file to current working directory
cd /inbox/
put e:\programme\WinSCP3\ausgang\einganghost.txt

cd /outbox/
get outboxftp.txt E:\Programme\WinSCP3\eingang\

# Disconnect
close
# Exit WinSCP
exit

GET its ok, but with PUT, i have no file on my FTP Confused
Rights on the ftp-server are ok and both folders are with 777
And i tried with:
put e:\programme\WinSCP3\ausgang\einganghost.txt /inbox/
... nothing ... no file ...

Any ideas ??
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Does the "put" command produce any output?
_________________
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