?
Solved

Win32 classes pt2

Posted on 2006-03-21
4
Medium Priority
?
137 Views
Last Modified: 2010-04-17
I'd like to find the class that would allow me to obtain the serial number/asset information from an external disk cabinet
0
Comment
Question by:sirbounty
  • 3
4 Comments
 
LVL 11

Accepted Solution

by:
Renato Montenegro Rustici earned 750 total points
ID: 16248995
Let me suggest the ultimate tool to navigate WMI Classes:

http://www.microsoft.com/downloads/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en

Download "WMI Administrative Tools" and use WMI CIM Studio to look for the classes. You can use the search tool to find any class you like, create and manage instances so you can see if the information provided is what you were looking for. You can also download scriptomatic which create sample scripts for you. Both from Microsoft.
0
 
LVL 67

Author Comment

by:sirbounty
ID: 16262597
Nice tool - but I've been unable to find what I'm looking for...
I'd be satisfied if I could at least get information off of an external tape library.  I found the tapedrive class, which gives me the installed drive info, but not info on the changer unit.
0
 
LVL 11

Expert Comment

by:Renato Montenegro Rustici
ID: 16269055
May be you will get it by calling Win32 API. I will check MSDN. If I found something, i will post.
0
 
LVL 11

Expert Comment

by:Renato Montenegro Rustici
ID: 16270917
Sir,

I found the following Win32 API:

GetTapeParameters - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Backup/backup/gettapeparameters.asp

And this docs will lead you to another point of view:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Backup/backup/creating_a_backup_application.asp

I think tape drivers are not handled as regular drives, so there are sets of APIs to control these devices.

Its possible that you'll have to build some DLL/COM Object to gain access to this function via Windows Script. But you can call it directly from VB.

Best regards.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Six Sigma Control Plans
Progress

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question