DirectorySize

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
Post Reply