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
Printable View
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
Take a look at this page:
http://www.vbecstasy.com/showdld.asp?id=26&pg=1
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
Might want to go search for a freeware FTP control . Inet control kind of bites.
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
I think you'd have to recursively go thru each directory on the server and get a list of files....
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.
plenderj thanks but I am new to this...any code examples to get me going?
thanks
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.
Isn't there some call I can do to retrieve the name of my files in a directory on the remote server?
Cander forgive my ignorance but you mean an actual .DLL or .Exe FTP control or just a simple program?
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.
Just write your program as an exe and use a thrid party FTP control to handle the FTP code. Makes iot tons easier
Cander all I know is ComponentSource.com. Is that a good place to start?
thanks
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
thanks Mark for the info ... have you heard of the FTp component PowerTCP FTP Tool?
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.
hey RyeBread thanks for the info!:cool:
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
thank you