|
-
Jun 19th, 2001, 10:06 AM
#1
Thread Starter
PowerPoster
FTP Code Please!!!
In my experience I can never get the Inet1 Control to work for me. I have heard there are other ways for me to upload and download files over the Internet. Can someone point me in the right direction please?
Thanks
-
Jun 19th, 2001, 10:10 AM
#2
-
Jun 19th, 2001, 10:11 AM
#3
Retired VBF Adm1nistrator
Well its quite simple if you use the winsock control to do it.
You connect and send plaintext commands etc.
Try telnetting to an ftp server on port 21.
You'll see what I mean.
In relation to retreiving the data, if you're not in passive mode, then as far as I know the client tells the server what local port to connect to, the server connects, and the data is sent.
If you get an ftp client they usually show you all the commands being issued anyway.
- jamie
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jun 19th, 2001, 10:12 AM
#4
Might want to go search for a freeware FTP control . Inet control kind of bites.
-
Jun 19th, 2001, 10:15 AM
#5
Thread Starter
PowerPoster
I think I am going to do just that and find a component to do the uploading and downloading.
Another question
Assuming I know my log in Id and passwords, how can I search the entire contents of a specific file on the remote server and report back all the file names ?
Thanks again
-
Jun 19th, 2001, 10:17 AM
#6
Retired VBF Adm1nistrator
I think you'd have to recursively go thru each directory on the server and get a list of files....
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jun 19th, 2001, 10:18 AM
#7
you would have to download the file and search through it in your program. FTP has nothing that allows you to do that. Unless you want to write your own ftp server to do that.
-
Jun 19th, 2001, 10:19 AM
#8
Thread Starter
PowerPoster
plenderj thanks but I am new to this...any code examples to get me going?
thanks
-
Jun 19th, 2001, 10:24 AM
#9
Now to get a list of files from an ftp server, there is an actual ftp command to do that. Any ftp control will have it built in with a method, but if you were to do it with winsock, the command to send would ls if I remember correctly. It woudl then send you back the list of files. But like I said, and FTP control would simplify this. Im sure there are some good free or very cheap ones out there.
-
Jun 19th, 2001, 10:26 AM
#10
Thread Starter
PowerPoster
Isn't there some call I can do to retrieve the name of my files in a directory on the remote server?
-
Jun 19th, 2001, 10:30 AM
#11
Thread Starter
PowerPoster
Cander forgive my ignorance but you mean an actual .DLL or .Exe FTP control or just a simple program?
-
Jun 19th, 2001, 10:36 AM
#12
Retired VBF Adm1nistrator
To get a list of files+folders off the current folder you send the LIST command.
To find all files+folders on the server, you would send the LIST command, then go into each one of those directories and do LIST and so on ad nauseum.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jun 19th, 2001, 10:44 AM
#13
Just write your program as an exe and use a thrid party FTP control to handle the FTP code. Makes iot tons easier
-
Jun 19th, 2001, 10:45 AM
#14
Thread Starter
PowerPoster
Cander all I know is ComponentSource.com. Is that a good place to start?
thanks
-
Jun 19th, 2001, 11:04 AM
#15
Frenzied Member
you could use wininet API calls
download this example Vbsmpftp.exe from here:
(it's a self extracting zip file)
http://support.microsoft.com/support.../Q195/6/53.ASP
-
Jun 19th, 2001, 11:08 AM
#16
Thread Starter
PowerPoster
thanks Mark for the info ... have you heard of the FTp component PowerTCP FTP Tool?
-
Jun 19th, 2001, 11:23 AM
#17
Thread Starter
PowerPoster
the component mentioned above gives this spec.
what does it mean?
Software Required: Winsock 2, DCOM95
I have Windows 2000 Professional as a development machine and this COM may run on 2000 Server.
-
Jun 19th, 2001, 11:30 AM
#18
Thread Starter
PowerPoster
hey RyeBread thanks for the info!
-
Jun 19th, 2001, 12:59 PM
#19
Lively Member
more info
I've tired to make a FTP program (sorta worked.. but i got stuck in a section)
here are some links that you could probaly use:
http://www.vbip.com/winsock/winsock_ftp_01.asp
http://www.vbip.com/winsock/winsock_ftp_ref_01.htm
They should help ya too
I have no real reason to put anything here....
-
Jun 19th, 2001, 01:05 PM
#20
Thread Starter
PowerPoster
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
|