[resolved] Upload code error 2

Advertisement

apprenti
Joined:
Posts:
3

[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.
Last edited by apprenti on 2011-03-04 09:19; edited 1 time in total

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum