static void choice4()
{
Console.WriteLine("Please enter a new directory to go to: ");
string newDirectory = Console.ReadLine();
try
{
Directory.SetCurrentDirectory(newDirectory);
}
catch (DirectoryNotFoundException n)
{
Console.WriteLine("The Directory {0} does not exist", n);
}
Console.WriteLine("Root directory: {0}", Directory.GetDirectoryRoot(newDirectory));
Console.WriteLine("Current directory: {0}", Directory.GetCurrentDirectory());
Console.ReadLine();
Console.Clear();
startscreen();
}
any help would be much appreciated

New Topic/Question
Reply



MultiQuote





|