richsimple Posted September 2, 2016 Share Posted September 2, 2016 (edited) I have come a blank with this one and every option I have tried so far hasn't worked. Im using a simple GUI using FileSelectFolder to copy files from USB to any other drive, what I would like to do is get the progree bar working but I don't have a clue where to start. This is the copy code I'm using and it does what I need it to do, I would just like to see how far through it is as some files are large and if its on USB I don't want to be pulling out the stick before its finished Func CopyClick() Local $source = $sFileSelectFolder Local $dest = $sFileSelectFolder1 Local $dest_time = $sFileSelectFolder & "\\..\old" & @YEAR & "-" & @MON & "-" & @MDAY If FileExists($dest_time) Then Local $num = 1 Local $new_dest = FileExists($dest_time & " " & $num) While 1 If $new_dest Then $num = $num + 1 $new_dest = FileExists($dest_time & " " & $num) Else DirMove($dest, $dest_time & " " & $num) ExitLoop EndIf WEnd Else DirMove($dest, $dest_time) EndIf DirCopy($source, $dest) ;@WorkingDir EndFunc ;==>CopyClick I know the solution is simple yet it escapes me... Edited September 2, 2016 by richsimple change of question before response Link to comment Share on other sites More sharing options...
Danyfirex Posted September 2, 2016 Share Posted September 2, 2016 Hello. progrably this helps. https://www.autoitscript.com/forum/topic/11888-yet-another-copy-with-progress/ Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
richsimple Posted September 2, 2016 Author Share Posted September 2, 2016 Thanks, was trying to find this type of postbefore I posted. Link to comment Share on other sites More sharing options...
Danyfirex Posted September 2, 2016 Share Posted September 2, 2016 You're welcome. short way https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_ShellFileOperation.htm Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
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