Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

apprenti

Thank for your help prikryl.
It's okay.
martin

Re: Upload code error 2

First, try to use correct slashes for local path:
put ..\photos\*.jpg

If is does not help, please post a log file.
apprenti

[resolved] Upload code error 2

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
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.