Incrementing Folder Names such as 5.0.0.x in C#
<p>I have a folder ~/ConfigurationDirectory. The sub-folders within this folder are named as follows </p>

<p>5.0.0.1<br>
5.0.0.2<br>
5.0.0.3<br>
...  </p>

<p>Now, the requirement is that - Identify the folder which has the "largest" name numerically and create a copy of the folder. Rename the new folder as 5.0.0.n+1 (assuming that the largest numerically available folder is 5.0.0.n)</p>

<p>I have written code which will identify the largest named folder. Also, I have written the code which will do the copy of folder and sub-folders. What I am not able to get is, how do I get the name of the new folder, i.e., 5.0.0.n+1</p>

<p>How do I do this in C#? Any pointers would suffice rather than complete coding. </p>

<p>Thanks!</p>
