|
Thread: FTP
-
Oct 3rd, 2000, 12:07 PM
#1
Thread Starter
Frenzied Member
how do i direct connect to a ftp server and send a file, can anyone send me a demo of how to do it or some of the code ?
Many Thanks.
-
Oct 3rd, 2000, 01:31 PM
#2
Ex-Super Mod'rater
I have been trying to do this for months. I have eventuly finished but i am missing the code to enable progress.
Visit my website for details about the ftp and e-mail me if you want the source.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Oct 3rd, 2000, 02:09 PM
#3
Fanatic Member
Code:
With Inet1
.Cancel
.Protocol = icFTP
.url = "123.123.123.123"
.UserName = "me"
.Password = "xxxx"
End With
'upload a file
Inet1.Execute , "PUT C:\test.txt test.txt"
'download file and download it to C:\test.txt
Inet1.Execute , "Get test.txt C:\test.txt"
Hope that helps,
D!m
-
Oct 3rd, 2000, 10:24 PM
#4
Member
The code you presented really works and that's what actually I've been using but what if I want to use winsock control? I know, as they say, that winsock control is far more better than the inet control.
Mikey
A/P
Using VB6 SP4 Enterprise Ed.
-
Oct 3rd, 2000, 11:09 PM
#5
Fanatic Member
That is very true...and for winsock transfers...please reffer to this example.
Gl,
D!m
-
Oct 4th, 2000, 03:07 AM
#6
Thread Starter
Frenzied Member
-
Oct 4th, 2000, 03:19 AM
#7
Thread Starter
Frenzied Member
OK, how would i upload the file 'C:\test.txt' into the directory 'psyvision-soft.net' because my server starts in the dir before the one i want it in
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|