Sign in to follow this  
Followers 0
Simpel

DirGetSize not working with NTFS?

4 posts in this topic

#1 ·  Posted (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 by Simpel

SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites



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...

Share this post


Link to post
Share on other sites

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.


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

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 here
RegExp tutorial: enough to get started
PCRE 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)

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  
Followers 0