G Guest Aug 26, 2004 #1 If a use supply a drive letter, hot to check it is a network drive or local drive. any Class to do this? Thx
If a use supply a drive letter, hot to check it is a network drive or local drive. any Class to do this? Thx
S Shiva Aug 26, 2004 #2 Hi, You can use GetDriveType() API. A sample is here: http://custom.programming-in.net/articles/art9-1.asp?f=GetDriveType If a use supply a drive letter, hot to check it is a network drive or local drive. any Class to do this? Thx
Hi, You can use GetDriveType() API. A sample is here: http://custom.programming-in.net/articles/art9-1.asp?f=GetDriveType If a use supply a drive letter, hot to check it is a network drive or local drive. any Class to do this? Thx
K Kristofer Gafvert Aug 26, 2004 #3 Hello, You can use WMI to get this kind of information. I wrote some sample code that you can find here: http://www.ilopia.com/Programming/SampleCode/FindOutTypeOfDrive-cs.txt (I posted it to a website because of readability). You can find more information about Win32_LogicalDisk WMI Class here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_logicaldisk.asp I hope this helps you!
Hello, You can use WMI to get this kind of information. I wrote some sample code that you can find here: http://www.ilopia.com/Programming/SampleCode/FindOutTypeOfDrive-cs.txt (I posted it to a website because of readability). You can find more information about Win32_LogicalDisk WMI Class here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_logicaldisk.asp I hope this helps you!