COPY file from C:\ to ftp

User avatar
sal21
PlatinumLounger
Posts: 4337
Joined: 26 Apr 2010, 17:36

COPY file from C:\ to ftp

Post by sal21 »

Possible copy a file from c:\ to a dir ftp

note:
i just have usename and psword of ftp server

User avatar
StuartR
Administrator
Posts: 12601
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: COPY file from C:\ to ftp

Post by StuartR »

In addition to the username and password you also need the hostname of the ftp server, and a port number - although the default port number of 21 is usually a good guess.

You also need some software to do the transfer, I use FileZilla, but there are other options, including some that are built-in to Windows 10. See https://www.howtogeek.com/272176/HOW-TO ... -SOFTWARE/
StuartR


User avatar
sal21
PlatinumLounger
Posts: 4337
Joined: 26 Apr 2010, 17:36

Re: COPY file from C:\ to ftp

Post by sal21 »

StuartR wrote:
25 Feb 2021, 12:01
In addition to the username and password you also need the hostname of the ftp server, and a port number - although the default port number of 21 is usually a good guess.

You also need some software to do the transfer, I use FileZilla, but there are other options, including some that are built-in to Windows 10. See https://www.howtogeek.com/272176/HOW-TO ... -SOFTWARE/
Naturally i know the name of ftp and the number port....

But i need to trasfer file from local to ftp via vb6 code.
Tks.

User avatar
HansV
Administrator
Posts: 78370
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: COPY file from C:\ to ftp

Post by HansV »

Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4337
Joined: 26 Apr 2010, 17:36

Re: COPY file from C:\ to ftp

Post by sal21 »

HansV wrote:
25 Feb 2021, 18:49
See for example

Upload and download files using FTP
with this suggestion i recieve... time out!, possible?
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78370
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: COPY file from C:\ to ftp

Post by HansV »

That's what the error message says...
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4337
Joined: 26 Apr 2010, 17:36

Re: COPY file from C:\ to ftp

Post by sal21 »

HansV wrote:
25 Feb 2021, 19:57
That's what the error message says...
yes!

User avatar
HansV
Administrator
Posts: 78370
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: COPY file from C:\ to ftp

Post by HansV »

I'm not an expert on this subject, so I have no idea what causes it or how to correct it.
Best wishes,
Hans