FTP file Verification

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for code to connect to a ftp server, check to see if a file is there and send out an email if it is not

I have read the other posts regarding ftp and have come away empty handed. Can someone supply me a sample piece of code directly (not through a link)? I do not need a UI, as i want this code to run daily through the scheduler

I thank you in advance.
 
I don't believe .NET has a built-in FTP component (someone correct me if I'm
wrong). Here are some examples that you may be able to use...

This one is a dotnet project for accessing FTP, but it seems the CodeProject
web site is down until later this afternoon because they are changing
hosts....

http://www.codeproject.com/useritems/dotnetftp.asp


These are mostly shown in VB6, but should be usable from VB.NET...

http://www.15seconds.com/issue/981203.htm
http://www.vbip.com/wininet/wininet-ftp-command-01.asp
http://www.vbip.com/protocols/ftp/vb-ftp-client-library/default.asp



Michael Wheeler said:
Thank you for the link, but it does not help me. I am looking for VB.net
code to do this FTP process. None of the links I have seen have helped me.
Does anyone have a sample of code to connect to a FTP server? I do not need
a UI, just the code that show the connection process and maybe a file
manipulation.
I find it hard to believe that I am the only person trying to attemp this?

Thank you.

----- Herfried K. Wagner [MVP] wrote: -----

* =?Utf-8?B?TWljaGFlbCBXaGVlbGVy?=
file is there and send out an email if it is not.
 
I don't believe .NET has a built-in FTP component (someone correct me
I'm wrong). Here are some examples that you may be able to use...
Correct.


message news:[email protected]...
code to do
this FTP process. None of the links I have seen have helped me.
Does anyone
have a sample of code to connect to a FTP server? I do not
need a UI, just
the code that show the connection process and maybe a
manipulation.

FTP is non-trivial. I'd recommend a component. There are a
lot of choices available - and a search on google should turn up many of them.
If you're looking for a commercial solution: www.nsoftware.com/download/ - look
for IP*Works! .Net Edition - a full FTP client demo is there including one in
VB.Net and one in C#.

Regards,
Lance R.
/n
software
http://www.nsoftware.com/

-
 
I am looking for code to connect to a ftp server, check to see if a file
is there and send out an email if it is not.
The FTP protocol has no provision for seeing if a file exists. About the
best way to do that is to actually download the file. That may not work if
you don't have permission to read the file. I can think of some
other possible ways to do those but those ways have their own problems. A
directory listing may not list a hidden file and even if the file is in the
list, there's no standard format for the listing. The size command (SIZE
filename) may work if the server supports that command (some may not). The
MDTM command (MDTM filename) can work if the server supports that feature
and you have permission to use those commands on that file.

HTH.
--
J. Peter Mugaas - Indy Pit Crew
Internet Direct (Indy) Website - http://www.nevrona.com/Indy
Personal Home Page - http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you. Otherwise, do not
contact me.
 
Back
Top