Click here to Skip to main content
15,917,928 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to bind a text file to check boxes Pin
Daniel_Logan15-Aug-07 0:22
Daniel_Logan15-Aug-07 0:22 
GeneralRe: how to bind a text file to check boxes Pin
Christian Graus15-Aug-07 0:53
protectorChristian Graus15-Aug-07 0:53 
QuestionQustion on NT Service - Logged in user Pin
malharone14-Aug-07 22:19
malharone14-Aug-07 22:19 
Question[Message Deleted] Pin
sw_tech12314-Aug-07 20:21
sw_tech12314-Aug-07 20:21 
AnswerRe: How to give an input to exe file through program? Pin
Malcolm Smart14-Aug-07 21:12
Malcolm Smart14-Aug-07 21:12 
QuestionRemoving items from string Array Pin
meeram39514-Aug-07 20:19
meeram39514-Aug-07 20:19 
AnswerRe: Removing items from string Array Pin
weic_tsubusa14-Aug-07 20:30
weic_tsubusa14-Aug-07 20:30 
QuestionThen skip this file God damn it!! [modified] Pin
Muammar©14-Aug-07 20:12
Muammar©14-Aug-07 20:12 
Hello guys,
I'm trying to do a basic search depending on some pattern using wild cards when the shhhhhhtoopid System.IO.Directory.GetFiles function refuses to bypass an unaccessible folder..
Please help meCry | :((

private void button1_Click(object sender, EventArgs e)
{
    string[] arSourceFiles;
    tryAgain:
    try
    {
        arSourceFiles = System.IO.Directory.GetFiles(@"C:\", @"c*", System.IO.SearchOption.AllDirectories);
    }
    catch (Exception ex)
    {
        string[] fileName = ex.Message.Split('\'');
        MessageBox.Show("error accessing file: " + fileName[1]);
        System.Diagnostics.Process process1 = new System.Diagnostics.Process();
        process1.StartInfo.FileName = "CMD.exe";
        process1.StartInfo.Arguments = @"/c attrib -h -s -r " + fileName[1]; //I failed to tackle it using this line:(
        process1.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
        process1.Start();
        goto tryAgain;
    }
    backgroundWorker1.RunWorkerAsync();
}



-- modified at 2:31 Wednesday 15th August, 2007


Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)

AnswerRe: Then skip this file God damn it!! Pin
Malcolm Smart14-Aug-07 21:08
Malcolm Smart14-Aug-07 21:08 
GeneralRe: Then skip this file God damn it!! Pin
Muammar©14-Aug-07 21:38
Muammar©14-Aug-07 21:38 
AnswerRe: Then skip this file ! Pin
Luc Pattyn15-Aug-07 3:17
sitebuilderLuc Pattyn15-Aug-07 3:17 
Questionmp3 player with equalizer... [modified] Pin
Life as a Coder14-Aug-07 19:15
Life as a Coder14-Aug-07 19:15 
QuestionOracle/ .NET connection Pin
.NET4Ever14-Aug-07 17:49
.NET4Ever14-Aug-07 17:49 
AnswerRe: Oracle/ .NET connection Pin
Christian Graus14-Aug-07 19:16
protectorChristian Graus14-Aug-07 19:16 
AnswerRe: Oracle/ .NET connection Pin
J4amieC14-Aug-07 22:07
J4amieC14-Aug-07 22:07 
AnswerRe: Oracle/ .NET connection Pin
.NET4Ever15-Aug-07 4:15
.NET4Ever15-Aug-07 4:15 
QuestionHow to create shape file in C# Pin
ssliew14-Aug-07 17:36
ssliew14-Aug-07 17:36 
AnswerRe: How to create shape file in C# Pin
Drew Stainton14-Aug-07 18:01
Drew Stainton14-Aug-07 18:01 
GeneralRe: How to create shape file in C# Pin
ssliew14-Aug-07 18:12
ssliew14-Aug-07 18:12 
GeneralRe: How to create shape file in C# Pin
Drew Stainton14-Aug-07 18:27
Drew Stainton14-Aug-07 18:27 
GeneralRe: How to create shape file in C# Pin
ssliew14-Aug-07 19:07
ssliew14-Aug-07 19:07 
GeneralRe: How to create shape file in C# Pin
Christian Graus14-Aug-07 19:14
protectorChristian Graus14-Aug-07 19:14 
GeneralRe: How to create shape file in C# Pin
ssliew14-Aug-07 19:29
ssliew14-Aug-07 19:29 
GeneralRe: How to create shape file in C# Pin
Christian Graus14-Aug-07 19:32
protectorChristian Graus14-Aug-07 19:32 
GeneralRe: How to create shape file in C# Pin
ssliew14-Aug-07 19:35
ssliew14-Aug-07 19:35 

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.