Click here to Skip to main content
15,900,973 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to read XML with directory structure Pin
Member 244330623-May-16 13:46
Member 244330623-May-16 13:46 
QuestionIs there a source code download for this article? Pin
Member 1253641620-May-16 10:59
Member 1253641620-May-16 10:59 
AnswerRe: Is there a source code download for this article? Pin
Pete O'Hanlon20-May-16 11:21
mvePete O'Hanlon20-May-16 11:21 
GeneralRe: Is there a source code download for this article? Pin
Richard Deeming20-May-16 11:28
mveRichard Deeming20-May-16 11:28 
GeneralRe: Is there a source code download for this article? Pin
Member 1253641620-May-16 11:32
Member 1253641620-May-16 11:32 
AnswerRe: Is there a source code download for this article? Pin
Richard Deeming20-May-16 11:33
mveRichard Deeming20-May-16 11:33 
JokeRe: Is there a source code download for this article? Pin
Member 1253641620-May-16 20:01
Member 1253641620-May-16 20:01 
Questiondelete directory / folder recursive, by pass locked files Pin
jkirkerx20-May-16 10:53
professionaljkirkerx20-May-16 10:53 
We got hit with that windows 10 upgrade today on 1/2 the computers.
So I wrote a console app to apply a tweak to Win 7 to stop the upgrades.

When I go to delete the folder with the disk image of Win10, I get an error saying this is a special file. How can I skip the error?

This is my first console app, and I'm new to c#
public static bool delete_win10Source(string winPath)
        {
            bool pValue = false;           

            try
            {
                DirectoryInfo dir = new DirectoryInfo(@winPath);
                bool rV = dir.Exists;
                if (rV)
                    Task.Factory.StartNew(path => dir.Delete(true), winPath);

                pValue = true;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                pValue = false;
            }            

            return pValue;
        }        

AnswerRe: delete directory / folder recursive, by pass locked files Pin
Member 244330620-May-16 11:50
Member 244330620-May-16 11:50 
GeneralRe: delete directory / folder recursive, by pass locked files Pin
jkirkerx20-May-16 12:30
professionaljkirkerx20-May-16 12:30 
AnswerProblem 2, access the HKLM as Admin doesn't work Pin
jkirkerx20-May-16 12:36
professionaljkirkerx20-May-16 12:36 
GeneralRe: Problem 2, access the HKLM as Admin doesn't work Pin
Member 244330620-May-16 12:53
Member 244330620-May-16 12:53 
GeneralRe: Problem 2, access the HKLM as Admin doesn't work Pin
jkirkerx21-May-16 12:00
professionaljkirkerx21-May-16 12:00 
GeneralRe: Problem 2, access the HKLM as Admin doesn't work Pin
jkirkerx22-May-16 7:28
professionaljkirkerx22-May-16 7:28 
AnswerRe: delete directory / folder recursive, by pass locked files [done] Pin
jkirkerx22-May-16 7:31
professionaljkirkerx22-May-16 7:31 
GeneralRe: delete directory / folder recursive, by pass locked files [done] Pin
Member 244330622-May-16 9:14
Member 244330622-May-16 9:14 
QuestionDotnetbar in C# Pin
Member 1051156220-May-16 1:18
Member 1051156220-May-16 1:18 
AnswerRe: Dotnetbar in C# Pin
Pete O'Hanlon20-May-16 1:42
mvePete O'Hanlon20-May-16 1:42 
JokeRe: Dotnetbar in C# Pin
Richard Deeming20-May-16 1:57
mveRichard Deeming20-May-16 1:57 
AnswerRe: Dotnetbar in C# Pin
Richard MacCutchan20-May-16 1:49
mveRichard MacCutchan20-May-16 1:49 
Questiontrouble with combobox and datagridviews Pin
Simon_Whale20-May-16 1:08
Simon_Whale20-May-16 1:08 
AnswerRe: trouble with combobox and datagridviews Pin
U. G. Leander20-May-16 1:37
professionalU. G. Leander20-May-16 1:37 
QuestionC# How to Copy Files of the same extension from One Server to multiple Servers on the same network simultaneously Pin
Member 1253400819-May-16 23:35
Member 1253400819-May-16 23:35 
AnswerRe: C# How to Copy Files of the same extension from One Server to multiple Servers on the same network simultaneously Pin
Pete O'Hanlon19-May-16 23:54
mvePete O'Hanlon19-May-16 23:54 
GeneralRe: C# How to Copy Files of the same extension from One Server to multiple Servers on the same network simultaneously Pin
Member 1253400820-May-16 0:38
Member 1253400820-May-16 0:38 

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.