Click here to Skip to main content
15,912,932 members
Home / Discussions / C#
   

C#

 
Questionminimum TimeSpan Pin
spin vector13-Mar-07 8:25
spin vector13-Mar-07 8:25 
AnswerRe: minimum TimeSpan Pin
- Pascal -13-Mar-07 12:05
- Pascal -13-Mar-07 12:05 
AnswerRe: minimum TimeSpan Pin
Luc Pattyn13-Mar-07 15:25
sitebuilderLuc Pattyn13-Mar-07 15:25 
QuestionPOS - Point of Sale Pin
Garysandhu13-Mar-07 8:09
Garysandhu13-Mar-07 8:09 
AnswerHeh Pin
Ennis Ray Lynch, Jr.13-Mar-07 9:50
Ennis Ray Lynch, Jr.13-Mar-07 9:50 
GeneralRe: POS - Point of Sale Pin
Guffa13-Mar-07 10:03
Guffa13-Mar-07 10:03 
AnswerRe: POS - Point of Sale Pin
swjam13-Mar-07 16:29
swjam13-Mar-07 16:29 
Questionftp directory exists Pin
Morten22213-Mar-07 7:58
Morten22213-Mar-07 7:58 
HelloSmile | :)
I have been trying to make a directory on a server. I can make the directory but if the directory exists it gives me an error. I have been searching the net for information on how to check if the directory exists. The only thing I could find is that I need to set FtpWebRequest.Method to "NLST" and I don't understand what that meansBlush | :O

My code so fare:
<br />
            Uri adresse = new Uri("ftp://" + "/" + sMappe);<br />
<br />
            FtpWebRequest req = (FtpWebRequest)WebRequest.Create(adresse);<br />
            req.Method = WebRequestMethods.Ftp.MakeDirectory;<br />
            req.Credentials = new NetworkCredential("login name", "password");<br />
            FtpWebResponse response = (FtpWebResponse)req.GetResponse();<br />
<br />
            Console.WriteLine("Status for mkdir: {0}", response.StatusDescription);<br />
            response.Close();<br />
<br />
            Console.WriteLine("Tryk enter for at slutte");<br />
            Console.Read();<br />
<br />

Got more code doing other things on the local computer but haven't worked with FTP before.
Hope you can help me.
Regards
Morten
Questionhow to monitor the Status of the windows service ? Pin
sundar15613-Mar-07 7:33
sundar15613-Mar-07 7:33 
AnswerRe: how to monitor the Status of the windows service ? Pin
kubben13-Mar-07 7:51
kubben13-Mar-07 7:51 
GeneralRe: how to monitor the Status of the windows service ? Pin
sundar15621-Mar-07 7:28
sundar15621-Mar-07 7:28 
GeneralRe: how to monitor the Status of the windows service ? Pin
kubben22-Mar-07 3:21
kubben22-Mar-07 3:21 
GeneralRe: how to monitor the Status of the windows service ? Pin
sundar15624-Mar-07 3:23
sundar15624-Mar-07 3:23 
GeneralRe: how to monitor the Status of the windows service ? Pin
kubben24-Mar-07 4:08
kubben24-Mar-07 4:08 
Questionexcel 2002 sp3 calling xml webservice Pin
arkiboys13-Mar-07 5:49
arkiboys13-Mar-07 5:49 
QuestionInsert Record Pin
Member 382880813-Mar-07 5:48
Member 382880813-Mar-07 5:48 
AnswerRe: Insert Record Pin
Pete O'Hanlon13-Mar-07 5:53
mvePete O'Hanlon13-Mar-07 5:53 
QuestionClass Design Pin
tadhg8813-Mar-07 4:37
tadhg8813-Mar-07 4:37 
AnswerRe: Class Design Pin
netJP12L13-Mar-07 8:13
netJP12L13-Mar-07 8:13 
AnswerRe: Class Design Pin
mike montagne13-Mar-07 10:02
mike montagne13-Mar-07 10:02 
Questionplease display image on report Pin
waleed9913-Mar-07 4:10
waleed9913-Mar-07 4:10 
Questionflexgrid Pin
sreerajknair13-Mar-07 3:44
sreerajknair13-Mar-07 3:44 
AnswerRe: flexgrid Pin
kubben13-Mar-07 3:59
kubben13-Mar-07 3:59 
QuestionC# code builds all the time whether it is current or not Pin
Antony M Kancidrowski13-Mar-07 3:28
Antony M Kancidrowski13-Mar-07 3:28 
AnswerRe: C# code builds all the time whether it is current or not Pin
Mike Dimmick13-Mar-07 5:02
Mike Dimmick13-Mar-07 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.