Home All Groups Group Topic Archive Search About

file information in ftp site

Author
21 Nov 2007 9:21 PM
Ken
hi,
I'm working on Script Task among the tools of SSIS Package.
I need to write codes to verify creation date of certain files in ftp site.

I tried to use the "System.Net.FtpWebRequest".
and then How about the information of the files  in ftp sites???

Author
22 Nov 2007 11:24 AM
Alexander Vasilevsky
Please try code below
    FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri);
    request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;

http://www.alvas.net  - Audio tools for C# and VB.Net developers


Show quote
"Ken" <k***@jeromegroup.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:uInqESILIHA.4684@TK2MSFTNGP06.phx.gbl...
> hi,
> I'm working on Script Task among the tools of SSIS Package.
> I need to write codes to verify creation date of certain files in ftp
> site.
>
> I tried to use the "System.Net.FtpWebRequest".
> and then How about the information of the files  in ftp sites???
>
Author
26 Nov 2007 5:17 PM
Ken
it doesn't help much.
because I want to know modified date for specific file, it doesn't give me
the information like that.

Thanks


Show quote
"Alexander Vasilevsky" <al***@alvas.net> wrote in message
news:fi3ou2$2g61$1@behemoth.volia.net...
> Please try code below
>    FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri);
>    request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
>
> http://www.alvas.net  - Audio tools for C# and VB.Net developers
>
>
> "Ken" <k***@jeromegroup.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
> news:uInqESILIHA.4684@TK2MSFTNGP06.phx.gbl...
>> hi,
>> I'm working on Script Task among the tools of SSIS Package.
>> I need to write codes to verify creation date of certain files in ftp
>> site.
>>
>> I tried to use the "System.Net.FtpWebRequest".
>> and then How about the information of the files  in ftp sites???
>>
>
>

AddThis Social Bookmark Button