473,671 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Zip Drive

How I can I determine if a drive is a zip drive.

TIA
Nov 20 '05 #1
3 1407
Hi,

The wmi win32_logicaldi sk class has information about the drives.
There is no clear zip drive property but take a look at the drive type,
Caption, Description, and PNPDeviceID. Add a reference to system.manageme nt
for to use the wmi. Hope this helps.

http://msdn.microsoft.com/library/de...ogicaldisk.asp

Dim moReturn As Management.Mana gementObjectCol lection

Dim moSearch As Management.Mana gementObjectSea rcher

Dim mo As Management.Mana gementObject

moSearch = New Management.Mana gementObjectSea rcher("Select * from
Win32_LogicalDi sk")

moReturn = moSearch.Get

For Each mo In moReturn

Dim strOut As String

strOut = String.Format(" Drive {0} - Drive Type {1}", mo("Name"),
mo("DriveType") )

Trace.WriteLine (strOut)

Next

Ken

--------------------

"Lespaul36" <le*******@none .net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How I can I determine if a drive is a zip drive.

TIA

Nov 20 '05 #2
I tried that, but it throws an error. I am thinking that mabe it is because
it is an old LPT one.
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:eo******** *****@TK2MSFTNG P10.phx.gbl...
Hi,

The wmi win32_logicaldi sk class has information about the drives.
There is no clear zip drive property but take a look at the drive type,
Caption, Description, and PNPDeviceID. Add a reference to system.manageme nt for to use the wmi. Hope this helps.

http://msdn.microsoft.com/library/de...ogicaldisk.asp
Dim moReturn As Management.Mana gementObjectCol lection

Dim moSearch As Management.Mana gementObjectSea rcher

Dim mo As Management.Mana gementObject

moSearch = New Management.Mana gementObjectSea rcher("Select * from
Win32_LogicalDi sk")

moReturn = moSearch.Get

For Each mo In moReturn

Dim strOut As String

strOut = String.Format(" Drive {0} - Drive Type {1}", mo("Name"),
mo("DriveType") )

Trace.WriteLine (strOut)

Next

Ken

--------------------

"Lespaul36" <le*******@none .net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How I can I determine if a drive is a zip drive.

TIA


Nov 20 '05 #3
It isn't really an error from win32_logicaldi sk, it was a handling error,
but the response comes back blank for pnpdeviceid. I can find the drive,
but it is a matter of gettng the caption for it. I have it saying
"Removable Drive" from using the FileSystemObjec t. I found that if I search
through some of the explorer registry keys I can sometimes get the name, but
it is iffy.

It would be nice if I could do it for multiple os versions.

<le*******@none .net> wrote in message
news:Ok******** ******@TK2MSFTN GP11.phx.gbl...
I tried that, but it throws an error. I am thinking that mabe it is because it is an old LPT one.
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:eo******** *****@TK2MSFTNG P10.phx.gbl...
Hi,

The wmi win32_logicaldi sk class has information about the drives. There is no clear zip drive property but take a look at the drive type,
Caption, Description, and PNPDeviceID. Add a reference to

system.manageme nt
for to use the wmi. Hope this helps.

http://msdn.microsoft.com/library/de...ogicaldisk.asp

Dim moReturn As Management.Mana gementObjectCol lection

Dim moSearch As Management.Mana gementObjectSea rcher

Dim mo As Management.Mana gementObject

moSearch = New Management.Mana gementObjectSea rcher("Select * from
Win32_LogicalDi sk")

moReturn = moSearch.Get

For Each mo In moReturn

Dim strOut As String

strOut = String.Format(" Drive {0} - Drive Type {1}", mo("Name"),
mo("DriveType") )

Trace.WriteLine (strOut)

Next

Ken

--------------------

"Lespaul36" <le*******@none .net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
How I can I determine if a drive is a zip drive.

TIA



Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1904
by: GregT | last post by:
I program in C#. Is there a way to determine which of the local machine's logical drives are associated with CD drive(s)?
2
5795
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for a while the network drive apears to have a red X on the icon and the drive becomes disconnected. this seems to effect the VB code from grabbing the tables. I get an error saying the specific table cannot be found. If i manually open the mapped...
1
3411
by: Max Baki via .NET 247 | last post by:
I all, i've write a sample ftp Windows service which download files and copy them on remote share or remote mapped drive (the service works fine on local drives). This part of code is the function to change the local path for downloaded files. If the configured path is different from local drive C: the new path is selected. The program works fine in debug or release mode into Visual Studio. All downloaded files were placed on remote...
7
24149
by: jimdscudder | last post by:
How can I use WMI or a WqlObjectQuery to find the hard drive letter of the physical drive location index. For example the following code will give me the physical drive location: StringCollection propNames = new StringCollection(); ManagementClass driveClass = new ManagementClass("Win32_DiskDrive"); PropertyDataCollection props = driveClass.Properties; foreach (PropertyData driveProperty in props) { propNames.Add(driveProperty.Name);
5
4466
by: Nirosh | last post by:
Hi All, Can any one suggest me a best way to do this .. I have a thrid party tool "EXE" that we need to use with our web service to manipulate some complex XML files, which reside in a seperate files server. we have mapped the fodler to a different folder and need to allow the EXE to process on the mapped drive. When I trigger the EXE via web service the EXE get the permission of the launching user (mean ASP.NET user) resulting a...
3
10575
by: James N | last post by:
My ASP.NET application needs read/write permissions for drive "Z:", which is mapped to my Linksys Gigadrive (Network Attached Storage...if anyone is familiar with that). If I configure the Gigadrive with "Guest" access rights, then everything works fine, BUT this leaves the drive vulnerable to everyone/everything including network viruses. Lately, my drive has had several attacks by the Lovegate virus. Eliminating such attacks...
2
8186
by: Kavitha | last post by:
Hi , Can any one tel me how to create a virtual drive in C#( similar to Gmail Virtual drive).Also tell me what interfaces could be used to create the same. Thanks in Advance Kavitha
4
9138
by: Luc The Perverse | last post by:
Hi - I have very little C# programming experience. I am making a software product which calls for an interface almost identical to Windows Explorer - and I wondered if mounting a "virtual drive" would be feasable for me (someone not good at programming) to implement. -- LTP :)
3
3087
by: Killer42 | last post by:
Hi all. Summary Plugging flash drive into work PC, no drive appears. Details First of all, I have searched TheScripts for an answer. The closest I found was this article which covered similar, but not identical issues. In more detail, the problem is this. I have two flash disks, an old 256MB USB1.1 and a newer (though not really new) 2GB USB2. They both appear to be working perfectly, and I'm trying to move all my stuff from the older...
23
3733
by: Rotsey | last post by:
Hi, I am writing an app that scans hard drives and logs info about every fine on the drive. The first iteration of my code used a class and a generic list to store the data and rhis took 13min on my 60 GB drive. I wanted it to be quicker.
0
8911
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4402
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.