posts - 315, comments - 273, trackbacks - 15

My Links

News

View Pietro Libro's profile on LinkedIn

DomusDotNet
   DomusDotNet

Pietro Libro

Tag Cloud

Article Categories

Archives

Post Categories

Blogs amici

Links

October 2007 Blog Posts

Gestione di siti multipli su IIS e Windows XP

Forse potranno tornare utili a qualcuno queste utility  per la gestione di siti multipli su IIS e Windows XP: XP PRO IIS Admin 1.8.0 e Windows XP IIS Manager v1.7 (compreso di codice sorgente)

posted @ Thursday, October 18, 2007 1:08 AM | Feedback (1) | Filed Under [ Varie ed eventuali ]

FTP: lista delle directory e dei file remoti

Come ottenere la lista delle directory e dei file remoti utilizzando gli oggetti FtpWebRequest e FtpWebResponse System.Net.FtpWebRequest conn =null ;System.Net.FtpWebResponse resp = null;conn = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://localhost"));conn.Credentials = new NetworkCredential("username", "password");conn.KeepAlive = false;conn.Method = WebRequestMethods.Ftp.ListDirectoryDetails; //Ottiene la risposta resp = (FtpWebResponse)(conn.GetResponse());StreamReader strReader = new StreamReader(resp.GetResponseStream(), System.Text.ASCIIEncoding.ASCII);//ArrItems contiene la lista di files e directorystring strItems = strReader.ReadToEnd();string[] arrItems = strItems.Split("\n".ToCharArray());strReader.Close();

posted @ Saturday, October 6, 2007 3:31 AM | Feedback (0) | Filed Under [ Varie ed eventuali C# ]

Powered by:
Powered By Subtext Powered By ASP.NET