0

I need to change the directory on the server to a subdirectory on the server, but it has to be specified by the client.

I've tried numerous ways to try and get this working properly but no solution.

Any tips would be appreciated.

Charles
  • 50,943
  • 13
  • 104
  • 142
  • 1
    can you post an example of how are you trying to achieve this? – pollirrata Apr 02 '13 at 18:24
  • string directorychoice = reader.ReadLine(); if (File.Exists(directorychoice)) { //Set the current directory. Directory.SetCurrentDirectory(directorychoice); } writer.WriteLine(directorychoice); and in the client, i have string directorychoice = Console.ReadLine(); Console.WriteLine("You have changed the directory to", directorychoice); – user2237335 Apr 02 '13 at 18:48
  • 2
    I think @pollirrata meant post it in your question ;) – Kyle Apr 02 '13 at 18:54

0 Answers0