Dose anyone have any solutions ?
The method i apropched is that on the server side i made that when i send the string "DirectoryInfo path" the server launches DirectoryInfo mypath returns the folders in a string and sends them back using NetworkStream, then i read the stream an add them to the treevies using a very raw and shitty method ex:
TreeNode hdd1 = new TreeNode(@"C:\");
string folder =Regex.Split("return string from netStream", "\r\n");
foreach (string fd in folder)
and that is how i get the first folders in "C:\", as you can see it is a primitive method, any ideas on how can i do this cleaner ? or how to get the next subfolders and so on, or at least improve my code?
Thanks in advance.