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
FTP problems
- Electroguard
- Posts: 852
- Joined: Mon Feb 08, 2021 6:22 pm
- Has thanked: 273 times
- Been thanked: 321 times
Re: FTP problems
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", "/")
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", "/")