Why when i give the path "c:" it changed me directly to application folder?
static void Main(string[] args)
{
DirectoryInfo dir = new DirectoryInfo("c:");
Console.WriteLine(dir.FullName);
Console.ReadLine();
}
The output is the following:
c:\users...\documents\visual studio 2010\projects\consoleApplication9\bin\debug
But when I give @"c:\"
it goes to disk c:
despite that "d:"
and @"d:\"
takes to disk d:
.
So I need a way to let "c:"
takes to disk c:
Thanks in advance!
DirectoryInfo dir = new DirectoryInfo("c:\\");
orDirectoryInfo dir = new DirectoryInfo(@"c:\");
. – Omsk