FTP problems

If doesn't fit into any other category ....
Post Reply
PANNO2
Posts: 51
Joined: Tue Jun 08, 2021 6:26 pm
Has thanked: 47 times
Been thanked: 3 times

FTP problems

Post by PANNO2 »

hi,
i try serveral ftp server software and try to upload a file to .

path$ = left$(d$, instr(-1, d$, "/")) ' extract the path
print bas.ftp$( "192.168.1.5", "annex", "annex", d$, path$)

unfortunatley i cant login . what ftp server should i use , is the command fine, i get always a

I'm sending 123.bas

-2 File not found


thx
User avatar
Electroguard
Posts: 835
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 267 times
Been thanked: 317 times

Re: FTP problems

Post by Electroguard »

You haven't shown what d$ is, so we can't see what you are working with.
But the error msg is about the file not the ftp server, and the stated 123.bas filename is invalid if it does not include the full root-relative path to it (which if the file is in the root would be /123.bas), so going by the supplied info it suggests Annex may not be finding the file specified by d$.

Doc Example : res$ = BAS.FTP$("192.168.1.57", "myLogin", "myPass", "/test.bas", "/")
User avatar
PANNO
Posts: 114
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 119 times
Been thanked: 25 times

Re: FTP problems

Post by PANNO »

Thx
Post Reply