Jump to content
Sign in to follow this  
Mathan

USB Copying/Moving scripts

Recommended Posts

Mathan

Hi, I am looking for Autoit scripts which can move some data/music files from our desktop drives to connected USB devices.

Pls help me on the same

Thanx

Share this post


Link to post
Share on other sites
Nahuel

Check this out. Modify it to your needs.

$RemovableDrives=DriveGetDrive("REMOVABLE")

$FolderToCopy=FileSelectFolder("Please select the folder you wish to send to all removable devices",@HomeDrive)
$Dirname=StringSplit($FolderToCopy,"\")

For $i=1 To $RemovableDrives[0]
    If $RemovableDrives[$i]="a:" Then ContinueLoop;A: is the floppy.
    MsgBox(0,"","Copying " & $FolderToCopy & " to " & StringUpper($RemovableDrives[$i])&"\"&$Dirname[$Dirname[0]])
    DirCopy($FolderToCopy,$RemovableDrives[$i]&"\"&$Dirname[$Dirname[0]])
Next

MsgBox(0,"","Done!")

This will copy a directory to all removable devices (except floppy).

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.