Mathan Posted January 16, 2008 Posted January 16, 2008 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
Nahuel Posted January 16, 2008 Posted January 16, 2008 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).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now