Simpel Posted July 12, 2014 Share Posted July 12, 2014 (edited) Hi, due to (first post) and to my own experiences I don't think that I can use DirGetSize(destination folder) while copying. Part of my script: $pid = Run('"' & @AutoItExe & '" /AutoIt3ExecuteLine "Dircopy(' & $qpo & ',' & $zpo & ')"') While 1 If Not ProcessExists($pid) Then ExitLoop $zsize = DirGetSize($dest) $zprosize = Int($zsize / ($qsize / 100)) GUICtrlSetData($zprozent,$zprosize) ;Refresh GUICtrlProgress GUICtrlSetData($kopiert,Round ($zsize / 1000, 0) & " KB von " & Round ($qsize / 1000, 0) & " KB kopiert") Sleep(1) WEnd Within some seconds the progress bar shows 100% and the size of the destination folder how it will be in the end. But it's still copying for seconds and minutes depending of the file size. Any ideas to get the real size of the still copying folder? Regards, Simpel Edited July 12, 2014 by Simpel SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win_10 Build = 19044 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 12, 2014 Share Posted July 12, 2014 I don't think you really want to know the folder size. I think that what you really want is a progress for that copy. Correct? Try the >_LargeFileCopy UDF, it was what I could find with a quick search... .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Simpel Posted July 12, 2014 Author Share Posted July 12, 2014 I want to know the folder size, too. GUICtrlSetData($kopiert,Round ($zsize / 1000, 0) & " KB von " & Round ($qsize / 1000, 0) & " KB kopiert") This means something like "34679 KB of 2362362 KB" copied. SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win_10 Build = 19044 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Link to comment Share on other sites More sharing options...
jchd Posted July 13, 2014 Share Posted July 13, 2014 Copy time heavily depends on average filesize and heavy subfolder nesting. Copying ten 100Mb files is much faster than one million 1Kb files. So: size doesn't matter as much as the number of participants. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) 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