Jump to content
Sign in to follow this  
sancas

Detect drivers usb and select the device

Recommended Posts

sancas

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?

Share this post


Link to post
Share on other sites
Bert

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

Edited by Volly

Share this post


Link to post
Share on other sites
sancas

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?

Share this post


Link to post
Share on other sites
Bert

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

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.