stuka Posted September 21, 2007 Share Posted September 21, 2007 (edited) . Edited August 24, 2009 by stuka Link to comment Share on other sites More sharing options...
therks Posted September 21, 2007 Share Posted September 21, 2007 $aFixed = DriveGetDrive('fixed') $aRemovable = DriveGetDrive('removable') ? My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
James Posted September 21, 2007 Share Posted September 21, 2007 (edited) As far as I know you can only get one. At a time. Although thinking about it you could go through a loop to retrieve them and then show the variables in a MsgBox() Edited September 21, 2007 by JamesB Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
SleepyXtreme Posted September 21, 2007 Share Posted September 21, 2007 #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:) Link to comment Share on other sites More sharing options...
Gif Posted September 21, 2007 Share Posted September 21, 2007 (edited) 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 September 21, 2007 by Gif Link to comment Share on other sites More sharing options...
SleepyXtreme Posted September 21, 2007 Share Posted September 21, 2007 oh whoops lmao yea that's right Link to comment Share on other sites More sharing options...
therks Posted September 22, 2007 Share Posted September 22, 2007 Quite easily actually. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now