Jump to content

DriveGetDrive()...Will it...


Triton
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...