Click here to Skip to main content
15,918,706 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to call Google API Pin
OriginalGriff14-Sep-09 22:46
mveOriginalGriff14-Sep-09 22:46 
GeneralRe: How to call Google API Pin
benjymous14-Sep-09 23:01
benjymous14-Sep-09 23:01 
GeneralRe: How to call Google API Pin
Anil Veeraghattapu 415-Sep-09 0:44
Anil Veeraghattapu 415-Sep-09 0:44 
GeneralRe: How to call Google API Pin
Henry Minute15-Sep-09 2:05
Henry Minute15-Sep-09 2:05 
GeneralRe: How to call Google API Pin
Vikram A Punathambekar15-Sep-09 0:11
Vikram A Punathambekar15-Sep-09 0:11 
GeneralRe: How to call Google API Pin
OriginalGriff15-Sep-09 2:43
mveOriginalGriff15-Sep-09 2:43 
QuestionHow to Store the Image file in Database and then retrive it from the database Pin
amaankhan14-Sep-09 22:18
amaankhan14-Sep-09 22:18 
AnswerRe: How to Store the Image file in Database and then retrive it from the database Pin
SeMartens14-Sep-09 22:28
SeMartens14-Sep-09 22:28 
QuestionReading multiple binary files as one... Pin
User 224816814-Sep-09 21:44
User 224816814-Sep-09 21:44 
AnswerRe: Reading multiple binary files as one... Pin
SeMartens14-Sep-09 22:25
SeMartens14-Sep-09 22:25 
GeneralRe: Reading multiple binary files as one... Pin
User 224816814-Sep-09 22:38
User 224816814-Sep-09 22:38 
Questionset Page Margin using Calc with C# [modified] Pin
natmed8014-Sep-09 21:25
natmed8014-Sep-09 21:25 
AnswerRe: set Page Margin using Calc with C# Pin
natmed8018-Sep-09 23:18
natmed8018-Sep-09 23:18 
QuestionDirectx Capture Set Audio devive Pin
anishkannan14-Sep-09 20:39
anishkannan14-Sep-09 20:39 
QuestionHow to save C# window form input to MS Access 2007 DB Pin
kyi kyi14-Sep-09 20:33
kyi kyi14-Sep-09 20:33 
AnswerRe: How to save C# window form input to MS Access 2007 DB Pin
0x3c014-Sep-09 20:39
0x3c014-Sep-09 20:39 
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 

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.