I am trying to get the logical drives from the pc my app is run on, i tried this but it does not work what am i doing wrong?
string[] strArray = new string[5] { Environment.GetLogicalDrives };
thanks in advance
Dave
Printable View
I am trying to get the logical drives from the pc my app is run on, i tried this but it does not work what am i doing wrong?
string[] strArray = new string[5] { Environment.GetLogicalDrives };
thanks in advance
Dave
GetLogicalDrives is a static method not a property, so you must use ().
Try this:
Code:String[] drives = Environment.GetLogicalDrives();
thanks