|
by: Ben Reese |
last post by:
Kind people on this discussion group have previously helped me to dynamically
identify CD rom drives etc at runtime using objects in System.management
+++++++++++++++++++++++++++++++++++++++
Dim query As New System.Management.ManagementObjectSearcher("SELECT * From
Win32_LogicalDisk")
Dim queryCollection As System.Management.ManagementObjectCollection =
query.Get()
For Each mo As System.Management.ManagementObject In queryCollection
|
by: Ben Reese |
last post by:
Kind people on this discussion group have previously helped me to dynamically
identify CD rom drives etc at runtime using objects in System.management
+++++++++++++++++++++++++++++++++++++++
Dim query As New System.Management.ManagementObjectSearcher("SELECT * From
Win32_LogicalDisk")
Dim queryCollection As System.Management.ManagementObjectCollection =
query.Get()
For Each mo As System.Management.ManagementObject In queryCollection
|
by: BK Drake |
last post by:
I am trying to assign a drive letter to a hidden partition. I have a hard
drive that has 2 paritions - a system and a data partition. When I retore
with an image the system drive the data drive does not get a drive letter.
Under my computer you only see the system partition. If you go to disk
management you can see the data partition but does not have a drive letter.
I am trying to write an application that would run after the system...
|
by: john doe |
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);
|
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);
|
|
by: sanjana |
last post by:
hi
i m using the win32_diskdrive class for detecting a
memory card insertion and removal..and this class
detects memory card(sd card..etc) insertion removal from the device
the deviceid attribute gives me \\.\PHYSICALDRIVE0 or
\\.\PHYSICALDRIVE1
etc..
i m trying to get the drive name say(c: or d: ...etc)from the device
|
by: Zeeshan |
last post by:
hi,
i want to get the hard drive number for example if if have drive letter C it
should tell me Disk number as 1 and suppose if i have another hard disk
attach to my system having letter J, the by giving J it should give me disk
number 2. Any kind of help will be fuly appreciated
Regards,
Zeeshan
|
by: Jim Carlock |
last post by:
function CreateMyDataBaseFile($FQFN, $UID, $PW) {
$db = "sqlite:" . $FQFN;
$sql = "CREATE TABLE Customers(name1 TEXT, name2 TEXT);";
$dbh = new PDO($db, $UID, $PW);
$dbh->exec($sql);
$dbh = null;
}
This works as long as a drive letter is not FQFN. For instance,
|
by: BigM |
last post by:
Hi Guys,
I am working up a little 'documents' section to an app of mine, where people can add links to docs on various share drives in our LAN, and they are displayed along with other details and can be clicked to open.
Everything works well using an input=file then an onchange to update a hidden text field to capture the whole directory, but at the moment when saving a link, the uri (as such) is starting with the mapped drive letter on my...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|