M
moondaddy
Using vb.net 2.0 and trying to get the drive letter the OS is installed on,
so from a console app I'm trying this:
Dim systemDirectory As String = Environment.SystemDirectory
However, systemDirectory is coming up null. when I put a watch on
Environment.SystemDirectory, it says "Property evaluation failed."
But it works when I do this:
Console.WriteLine("SystemDirectory: {0}", Environment.SystemDirectory)
it works which I dont understand. Any idea how I can get the first line
above to work?
Thanks.
so from a console app I'm trying this:
Dim systemDirectory As String = Environment.SystemDirectory
However, systemDirectory is coming up null. when I put a watch on
Environment.SystemDirectory, it says "Property evaluation failed."
But it works when I do this:
Console.WriteLine("SystemDirectory: {0}", Environment.SystemDirectory)
it works which I dont understand. Any idea how I can get the first line
above to work?
Thanks.