Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can i stop flickering on the form Pin
Judah Gabriel Himango18-Jan-06 4:38
sponsorJudah Gabriel Himango18-Jan-06 4:38 
GeneralRe: how can i stop flickering on the form Pin
ugurbil18-Jan-06 6:06
ugurbil18-Jan-06 6:06 
QuestionRichTextBox Question Please Help!!!!! Pin
snouto18-Jan-06 2:27
snouto18-Jan-06 2:27 
AnswerRe: RichTextBox Question Please Help!!!!! Pin
Judah Gabriel Himango18-Jan-06 4:45
sponsorJudah Gabriel Himango18-Jan-06 4:45 
QuestionTreeView Nodes Pin
Gamil Mohamad18-Jan-06 1:44
Gamil Mohamad18-Jan-06 1:44 
AnswerRe: TreeView Nodes Pin
Judah Gabriel Himango18-Jan-06 4:49
sponsorJudah Gabriel Himango18-Jan-06 4:49 
GeneralRe: TreeView Nodes Pin
Gamil Mohamad19-Jan-06 22:00
Gamil Mohamad19-Jan-06 22:00 
Questionhow to get the network Directory info? Pin
Member 114126818-Jan-06 1:44
Member 114126818-Jan-06 1:44 
Hi
I hope someone in here can help me with this issue.

I am trying to write a little application that will give me the information of the directory which is there in the network.

I am able to get the local directory information, but when I tried to access the information of the directory which is in some other
system of the same network I am getting Exception as "Logon failure: unknown user name or bad password."

In fact the directory which I am trying to access is created by myself using another console application.

Here is my code snippet,

DirectoryInfo dir = null;
FileInfo[] xmlFiles;
//get the directory info,
//here test machine is a network machine under same domain
dir = new DirectoryInfo("\\\\TestMachine\\Indexes\\");

//get the information about the subdirectories of dir.
DirectoryInfo[] subDirectories = dir.GetDirectories();


when I try to execute this GetDirectories() method its says "Logon failure: unknown user name or bad password."

So, am doing anything wrong in this code? or is there any other solution to get the directory Info?

Expecting some solution.

Thanks in advance.

Hans.
AnswerRe: how to get the network Directory info? Pin
Judah Gabriel Himango18-Jan-06 4:58
sponsorJudah Gabriel Himango18-Jan-06 4:58 
AnswerRe: how to get the network Directory info? Pin
Dave Kreskowiak18-Jan-06 5:30
mveDave Kreskowiak18-Jan-06 5:30 
QuestionExcel in C# Pin
Acheive_it18-Jan-06 1:38
Acheive_it18-Jan-06 1:38 
Questionhow do I read a files' or assemblys' metadata (date modified, assembly version, etc.) Pin
AfzalHassen18-Jan-06 1:20
AfzalHassen18-Jan-06 1:20 
AnswerRe: how do I read a files' or assemblys' metadata (date modified, assembly version, etc.) Pin
Werdna18-Jan-06 7:25
Werdna18-Jan-06 7:25 
AnswerRe: how do I read a files' or assemblys' metadata (date modified, assembly version, etc.) Pin
munishsehgal22-Jan-06 1:14
munishsehgal22-Jan-06 1:14 
GeneralRe: how do I read a files' or assemblys' metadata (date modified, assembly version, etc.) Pin
AfzalHassen22-Jan-06 19:35
AfzalHassen22-Jan-06 19:35 
QuestionQuestions on TextBox control Pin
bouli18-Jan-06 0:55
bouli18-Jan-06 0:55 
AnswerRe: Questions on TextBox control Pin
Sheel Gohe18-Jan-06 1:12
Sheel Gohe18-Jan-06 1:12 
GeneralRe: Questions on TextBox control Pin
bouli18-Jan-06 5:05
bouli18-Jan-06 5:05 
Questiongetting client ip Pin
Ankit Aneja18-Jan-06 0:41
Ankit Aneja18-Jan-06 0:41 
GeneralRe: getting client ip Pin
Guffa18-Jan-06 1:21
Guffa18-Jan-06 1:21 
GeneralRe: getting client ip Pin
Ankit Aneja18-Jan-06 1:26
Ankit Aneja18-Jan-06 1:26 
AnswerRe: getting client ip Pin
Guffa24-Jan-06 23:05
Guffa24-Jan-06 23:05 
Questionhelp me plssssssssssssss Pin
willsgeorge18-Jan-06 0:41
willsgeorge18-Jan-06 0:41 
AnswerRe: help me plssssssssssssss Pin
Sheel Gohe18-Jan-06 1:22
Sheel Gohe18-Jan-06 1:22 
QuestionCrystal reports sharing Pin
robmays18-Jan-06 0:24
robmays18-Jan-06 0:24 

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.