puma Posted August 20, 2004 Posted August 20, 2004 Is there any way to access drive information (letter, type, label, IsReady, Serial No,...) in .NET, other than using Windows Scripting Host's FileSystemObject? Quote
kejpa Posted August 20, 2004 Posted August 20, 2004 For Each sDrive In Directory.GetLogicalDrives() Console.WriteLine(sDrive) Next Gives you the logical drives. Quote
Administrators PlausiblyDamp Posted August 20, 2004 Administrators Posted August 20, 2004 The .Net framework versions 1.0 and 1.1 don't appear to provide any classes for getting at drive information - however in the 2.0 framework there is a DriveInfo class that seems to provide the functionality you require. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.