Jump to content
Sign in to follow this  
stuka

...

Recommended Posts

SleepyXtreme

#include <Array.au3>
dim $Var[1]
$aFixed = DriveGetDrive('fixed')
$aRemovable = DriveGetDrive('removable')

For $x = 1 to $aFixed[0]
     $Var[0] +=1
     _ArrayAdd( $Var,$x)
Next
For $i = 1 to $aRemovable[0]
     $Var[0] +=1
     _ArrayAdd( $Var,$i)
Next

This is just a rough idea, but basically it gets all the info from both and combines it into 1 array, $Var. $Var[0] is the total number of items it catches.

let me know if this helps:)

Share this post


Link to post
Share on other sites
Gif

more like this:

#include <Array.au3>
dim $Var[1]
$aFixed = DriveGetDrive('fixed')
$aRemovable = DriveGetDrive('removable')
For $x = 1 to $aFixed[0]
     $Var[0] +=1
     _ArrayAdd($Var, $aFixed[$x])
Next
For $i = 1 to $aRemovable[0]
     $Var[0] +=1
     _ArrayAdd($Var, $aRemovable[$i])
Next
 _ArrayDisplay($Var)
Edited by Gif

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.