Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Script for testing disk's state

Reply
Thread Tools Display Modes

Script for testing disk's state

 
 
Andrea Caldarone
Guest
Posts: n/a

 
      12-02-2009
Hi all,

I want to check with a script if a given disk is onlineline or offline. Is
it possible?

 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      12-02-2009

"Andrea Caldarone" <> wrote in message
news:%...
> Hi all,
>
> I want to check with a script if a given disk is onlineline or offline. Is
> it possible?


You could use mountvol.exe to enumerate the drive letter of each partition,
then check the disk label for each drive letter. If you cannot find the
label of the given disk or partition then it must be offline.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logon script for mapping Bonno Bloksma Scripting 1 11-27-2009 05:18 PM
Vista 64 - pci.sys cannot allocate PCI bar above 4 gig area Pat Windows Vista Drivers 6 10-30-2009 02:28 AM
Re: Windows update error 80070246 Robert Aldwinckle Windows Vista Performance 7 12-31-2007 07:44 PM
Vista & Dynamic Disks / Spanning elziko Windows Vista Hardware 0 12-14-2007 02:34 PM
Stop Error 0x0000007b Louis LeBrun Windows Vista Installation 17 07-05-2006 09:00 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59