Re: How to change volume ID with VB6?
- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Sun, 26 Jul 2009 08:32:47 +0100
Hi Darko,
If you look at:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar06/hey0314.mspx
you will find a method which can change either drive letter or label, using
WMI (windows management interface) within VBScript.
Beware that when I go to that TechNet page, I get a warning dialog saying
that a runtime error has occurred, but if I click No (I do not want to
debug) then it goes away with no apparent ill effects.
hth
Martin
----- Original Message -----
From: "Darko Pogačić" <darko.pogacic@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Saturday, July 25, 2009 1:43 PM
Subject: How to change volume ID with VB6?
Hello!
I would like to change a hard drive volume ID with VB6. When I put the
reference on Microsoft Script, and create FSO - File System Object, I can
only get a volume serial number for example volumes:C:, D:, etc. I am
interesting how to get a volume ID, in the form: xxxx-xxxx, and to change
it, but ID, not serial number.
Can I declare, and call an API function which can do it?
The best regards
Darko Pogačić
Croatia
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.392 / Virus Database: 270.13.29/2260 - Release Date: 07/25/09
01:48:00
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
Other related posts: