|
-
Jul 23rd, 2001, 02:28 AM
#1
Thread Starter
Hyperactive Member
Uploading a file to a ftp site????
Hi!
Is there any way to connect to a ftp site and login and after that upload a file from my local disc to the ftp site???
Some useful code would be great.....
/Smirre
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
-
Jul 23rd, 2001, 02:37 AM
#2
PowerPoster
Use the inet control!!
Let you upload, download whatever to and from a ftp site.
www.planet-source-code.com has some good examples!
good luck
b
-
Jul 23rd, 2001, 02:40 AM
#3
Thread Starter
Hyperactive Member
....
Ok, going to look in to it.
Do you all think using the inet contol is the best way???
/Smirre
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
-
Jul 23rd, 2001, 03:43 AM
#4
Addicted Member
Code:
Screen.MousePointer = vbHourglass
Inet1.URL = "ftp://ftp.myhost.com"
Inet1.UserName = "myuser"
Inet1.Password = "mypass"
Inet1.Protocol = icFTP
Inet1.Execute Inet1.URL, "put c:\myfile.txt /myfolder/myfile.txt"
Do While Inet1.StillExecuting
DoEvents
Loop
Screen.MousePointer = vbDefault
-
Jul 23rd, 2001, 04:08 AM
#5
PowerPoster
You could use the API!
But i dont know it PM Mathew Gates he'll probably know it.
-
Jul 23rd, 2001, 04:15 AM
#6
Thread Starter
Hyperactive Member
thanks...
Hi!
Thanks for the help all. Going to try using the inet control.
/Smirre
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
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
|