Page 1 of 1

Posted: Thu Feb 13, 2003 7:53 am
by BackupUser
Restored from previous forum. Originally posted by Alltimefriend.

Hi!

I am programming a tool which uses the copy-functions (file and directory).

I also want to integrate a progressbar, but therefore I need the size of all files and directory the user wants to copy.

Does anyone know, how I can solve this problem?

Greetz, ATF

Posted: Fri Feb 14, 2003 7:22 am
by BackupUser
Restored from previous forum. Originally posted by JoRo.

Hi ATF,

if you use the api calls for the file functions, you get teh windows progressbar.


Structure ShOp
hWnd.l; As Long
wFunc.l; As Long
pFrom.s; As String
pTo.s; As String
fFlags.w; As Integer
fAborted.b; As Boolean
hNameMaps.l; As Long
sProgress.s; As String
EndStructure


My\fFlags=#FOF_NOCONFIRMATION
My\pFrom =Frompfad$+Chr(0)
My\pTo =Topfad$+Chr(0)
My\wFunc=#FO_Copy
OP=My.ShOp
SHFileOperation_(OP)


the structure is already given in Pure, only shown for understanding

Johannes