Jump to content

Recommended Posts

Posted

Hi I'm creating a program that is installed on a USB stick but I would like to know which command or function can make the program know what hard disks that are available in the computer to install this application on whose unit; someone could help me?

Posted

http://www.autoitscript.com/forum/index.ph...st&p=597082

Welcome to the Forum!

remember, you can use the search feature to find what you need quickly. For example, I used the keyword "USB" and came up with this result:

http://www.autoitscript.com/forum/index.ph...highlite=%2BUSB

:mellow: lol sorry I dont search. but other question when the usb has been detect; this the code.

$var = DriveGetDrive( "REMOVABLE" )
If NOT @error Then
    MsgBox(0, "Buscando Dispositivo", "Se encontraron " & $var[0] & " dispositivos")
    For $i = 1 to $var[0]
        MsgBox(0, "Dispositivo " & $i, $var[$i])
    Next
EndIf

I need that when he launched the code after launching a small drop-down menu to give me a choice in which device I would like to install the program E, D, F, and others, and when they choose the device you want to run and install all the things in that unit; know how can I do?

Posted

:mellow: lol sorry I dont search. but other question when the usb has been detect; this the code.

$var = DriveGetDrive( "REMOVABLE" )
If NOT @error Then
    MsgBox(0, "Buscando Dispositivo", "Se encontraron " & $var[0] & " dispositivos")
    For $i = 1 to $var[0]
        MsgBox(0, "Dispositivo " & $i, $var[$i])
    Next
EndIf

I need that when he launched the code after launching a small drop-down menu to give me a choice in which device I would like to install the program E, D, F, and others, and when they choose the device you want to run and install all the things in that unit; know how can I do?

well, Look at the file, directory and disk management section of the help file. You should see what you need there, along with the many examples of code to show you what you need.

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