Jump to content

Recommended Posts

Posted (edited)

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

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
×
×
  • Create New...