Topic "[resolved] Upload code error 2"

Author Message
apprenti
[View user's profile]

Joined: 2011-02-11
Posts: 3
Hi everybody !

I build a little script for upload file in windows to linux server. I test in local this script it's okay.

But when i would test with the server i have "file or folder does not exist" System Error 2.
If i test in graphical user interface, i see the folder and i can upload to the server. But i don't use the graphical user interface only script.
I change the name of file ( no special character and no space in the name) but it's the same thing.

Thank for your help.

My script is
Code:

option echo on
option confirm off
option transfer automatic

open sftp://%1%:%2%@%:22 -hostkey="%4%"
put ../photos/*.jpg

exit
close

Sorry if my english is bad.

Last edited by apprenti on 2011-03-04 09:19; edited 1 time in total
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
First, try to use correct slashes for local path:
put ..\photos\*.jpg

If is does not help, please post a log file.
_________________
Martin Prikryl
apprenti
[View user's profile]

Joined: 2011-02-11
Posts: 3
Thank for your help prikryl.
It's okay.
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