Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to save C# window form input to MS Access 2007 DB Pin
kyi kyi14-Sep-09 20:40
kyi kyi14-Sep-09 20:40 
AnswerRe: How to save C# window form input to MS Access 2007 DB Pin
Vimalsoft(Pty) Ltd14-Sep-09 20:41
professionalVimalsoft(Pty) Ltd14-Sep-09 20:41 
AnswerRe: How to save C# window form input to MS Access 2007 DB Pin
khosnur14-Sep-09 21:51
khosnur14-Sep-09 21:51 
AnswerRe: How to save C# window form input to MS Access 2007 DB Pin
carlecomm21-Sep-09 17:48
carlecomm21-Sep-09 17:48 
QuestionAccess Shared Directory from Repote Pc c# Pin
shaktisinh14-Sep-09 19:32
shaktisinh14-Sep-09 19:32 
AnswerRe: Access Shared Directory Programmatically c# Pin
Christian Graus14-Sep-09 19:43
protectorChristian Graus14-Sep-09 19:43 
GeneralRe: Access Shared Directory Programmatically c# Pin
shaktisinh14-Sep-09 20:34
shaktisinh14-Sep-09 20:34 
GeneralRe: Access Shared Directory Programmatically c# Pin
Ram. S8-Oct-09 3:19
Ram. S8-Oct-09 3:19 
Hi,

i'm also working on same kind of process.

I want to access files from shared folder in network, but icould not able to access. below i give the code

void imperson()
{
try
{

try
{
DirectoryInfo Dir1 = new DirectoryInfo(@"\\192.168.100.251\StreamManager3\Current");

FileInfo[] FileList1 = Dir1.GetFiles("*.wav");

FileInfo getPrope1 = new FileInfo(@"\\192.168.100.251\StreamManager3\Current\" + FileList1[0].Name);
}
catch (Exception ex)
{

}

ConnectionOptions connec = new ConnectionOptions();

connec.Impersonation = ImpersonationLevel.Impersonate;

connec.EnablePrivileges = true;

connec.Username = "administrator";
connec.Password = "admin";

ManagementScope scope = new ManagementScope(@"\\192.168.100.251\root\cimv2", connec);



//scope.Path = @"192.168.100.251";
scope.Options = connec;

scope.Connect();

DirectoryInfo Dir = new DirectoryInfo(@"\\192.168.100.251\StreamManager3\Current");

FileInfo[] FileList = Dir.GetFiles("*.wav");

FileInfo getPrope = new FileInfo(@"\\192.168.100.251\StreamManager3\Current\" + FileList[0].Name);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}

Can you help me whats wrong in the code

S. Ramkumar
Questionexcel columns Pin
Member 59031014-Sep-09 19:29
Member 59031014-Sep-09 19:29 
AnswerRe: excel columns Pin
Christian Graus14-Sep-09 19:46
protectorChristian Graus14-Sep-09 19:46 
AnswerRe: excel columns Pin
khosnur14-Sep-09 20:02
khosnur14-Sep-09 20:02 
AnswerRe: excel columns Pin
khosnur14-Sep-09 20:09
khosnur14-Sep-09 20:09 
GeneralRe: excel columns Pin
Member 59031014-Sep-09 20:20
Member 59031014-Sep-09 20:20 
GeneralRe: excel columns Pin
Christian Graus14-Sep-09 20:27
protectorChristian Graus14-Sep-09 20:27 
GeneralRe: excel columns Pin
Member 59031014-Sep-09 20:33
Member 59031014-Sep-09 20:33 
GeneralRe: excel columns Pin
Christian Graus14-Sep-09 21:08
protectorChristian Graus14-Sep-09 21:08 
GeneralRe: excel columns Pin
Richard MacCutchan14-Sep-09 21:38
mveRichard MacCutchan14-Sep-09 21:38 
AnswerRe: excel columns Pin
carlecomm21-Sep-09 17:53
carlecomm21-Sep-09 17:53 
QuestionHow to uninstall (remove from "Add or Remove Programs") a setup which is build in vs2005? Pin
svt gdwl14-Sep-09 18:52
svt gdwl14-Sep-09 18:52 
AnswerRe: How to uninstall (remove from "Add or Remove Programs") a setup which is build in vs2005? Pin
Vimalsoft(Pty) Ltd14-Sep-09 20:45
professionalVimalsoft(Pty) Ltd14-Sep-09 20:45 
QuestionPrimary Key in XML File Pin
Tufail Ahmad14-Sep-09 18:31
Tufail Ahmad14-Sep-09 18:31 
AnswerRe: Primary Key in XML File Pin
Christian Graus14-Sep-09 18:54
protectorChristian Graus14-Sep-09 18:54 
Questiongrid control Pin
Member 59031014-Sep-09 18:28
Member 59031014-Sep-09 18:28 
AnswerRe: grid control Pin
Christian Graus14-Sep-09 18:55
protectorChristian Graus14-Sep-09 18:55 
AnswerRe: grid control Pin
Vimalsoft(Pty) Ltd14-Sep-09 20:47
professionalVimalsoft(Pty) Ltd14-Sep-09 20:47 

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.