Jump to content
Sign in to follow this  
Triton

DriveGetDrive()...Will it...

Recommended Posts

Triton

see partitions as drives or just the physical drives?


Triton

Share this post


Link to post
Share on other sites
Blue_Drache

see partitions as drives or just the physical drives?

<{POST_SNAPBACK}>

I'm assuming you have a partitioned drive

Try this

$drives = DriveGetDrive("ALL")

For $x = 1 to $drives[0] step 1
MsgBox(0,"Drive: " & $x, $drive[$x])
Next
Exit

Or:

$var = DriveGetDrive( "all" )
If NOT @error Then
    MsgBox(4096,"", "Found " & $var[0] & " drives")
    For $i = 1 to $var[0]
        MsgBox(4096,"Drive " & $i, $var[$i])
    Next
EndIf
Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites
Triton

I'm using DriveGetDrive("fixed") and wanted to know if it only reports physical hard disks like disk 0 or disk 1 not partitions like c: d: e: and so-on


Triton

Share this post


Link to post
Share on other sites
Blue_Drache

I'm using DriveGetDrive("fixed") and wanted to know if it only reports physical hard disks like disk 0 or disk 1 not partitions like c: d: e: and so-on

<{POST_SNAPBACK}>

Ok, what I meant to say was, write a test script and take a look at what the values of the variables are. Using my MsgBox loop, it tells you what drive is where in the test loop. If you know you have 2 physical drives, and "fixed" is returning partitions, then yes, it returns partitions too.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×