Jump to content

[solved] Needed Little help please with a array


Recommended Posts

Hi all autoit users

I need little help with this code what i want isthe result that I have in StringUpper(aDrives[$i]  I want to have in a new variabel example $drive

I dont know how I do it ?

Excuse me for my bad english..

 

$aDrives = DriveGetDrive("Removable")
For $i = 1 To UBound($aDrives) -1
    If DriveGetLabel($aDrives[$i]) = "backup52" Then
        MsgBox(0, "Result", StringUpper($aDrives[$i]))
            
    EndIf
Next

 

Edited by Borje
Link to comment
Share on other sites

$aDrives = DriveGetDrive("Removable")
For $i = 1 To UBound($aDrives) -1
    If DriveGetLabel($aDrives[$i]) = "backup52" Then
    $adrive = StringUpper($aDrives[$i])
        MsgBox(0, "Result", $adrive)
            
    EndIf
Next

I havent run above code just try it.

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

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...