Click here to Skip to main content
15,879,535 members
Home / Discussions / C#
   

C#

 
GeneralRe: Certificate in TCPListnear Pin
Afzaal Ahmad Zeeshan21-May-16 1:22
professionalAfzaal Ahmad Zeeshan21-May-16 1:22 
GeneralRe: Certificate in TCPListnear Pin
Jaimesh.241122-May-16 21:11
Jaimesh.241122-May-16 21:11 
AnswerRe: Certificate in TCPListnear Pin
Afzaal Ahmad Zeeshan22-May-16 21:18
professionalAfzaal Ahmad Zeeshan22-May-16 21:18 
GeneralRe: Certificate in TCPListnear Pin
Jaimesh.241122-May-16 21:21
Jaimesh.241122-May-16 21:21 
GeneralRe: Certificate in TCPListnear Pin
Afzaal Ahmad Zeeshan22-May-16 21:35
professionalAfzaal Ahmad Zeeshan22-May-16 21:35 
QuestionHow to read XML with directory structure Pin
Member 244330620-May-16 11:28
Member 244330620-May-16 11:28 
AnswerRe: How to read XML with directory structure Pin
Karthik_Mahalingam21-May-16 22:46
professionalKarthik_Mahalingam21-May-16 22:46 
GeneralRe: How to read XML with directory structure Pin
Member 244330622-May-16 9:12
Member 244330622-May-16 9:12 
But that brings up next problem: You get the full path + filename.

First of all I am realy serious in finding out if there is a way to reverse the
C#
new XElement("Name", fi.Name),
version.

Secondly I want it relative to the starting path.

Maybe that was not clear. Lets say you have resulting XML (part ofthe example):

XML
<Dir Name="Tmp">
  <Dir Name="ConsoleApplication1">
    <Dir Name="bin">
      <Dir Name="Debug">
        <File>
          <Name>ConsoleApplication1.exe</Name>
          <Length>4608</Length>
        </File>
      </Dir>
    </Dir>
  </Dir>
</Dir>


I want to read the results:
File.Name: temp\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
File.Length: 4608

Without the c:\.

Advantage: if you move all from c:\Temp to c:\Projects\Temp you can still find all files as in the XML if you revers the search.

Greetings

modified 22-May-16 16:55pm.

GeneralRe: How to read XML with directory structure Pin
Member 244330622-May-16 12:53
Member 244330622-May-16 12:53 
SuggestionRe: How to read XML with directory structure Pin
Richard Deeming23-May-16 1:44
mveRichard Deeming23-May-16 1:44 
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 
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 

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.