newtofoxpro
Programmer
Pls refer above link.
1. How to hide ProgressBar in Zipping.
2. Detect zipping completion.
Thanks & Best Regards.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DECLARE Sleep IN WIN32API INTEGER
cFileZip = "D:\Kit\Zipdemo.ZIP"
cSource = "D:\Kit\Zipdemo\"
*****************************
* Preparations
*****************************
* Create three big files
* and 1000 small files
*****************************
IF !DIRECTORY(cSource)
MD (cSource)
ENDIF
? "Create 1.5 GB of txt files. Please wait..."
STRTOFILE(SPACE(10000),cSource + "f1.txt")
FOR lnj = 1 TO 1000
FOR lni = 0 TO 24
STRTOFILE(REPLICATE(CHR(65 + m.lni),10000),cSource + "f1.txt",1)
STRTOFILE(REPLICATE(CHR(97 + m.lni),10000),cSource + "f1.txt",1)
NEXT
STRTOFILE("1",cSource + "small" + TRANSFORM(m.lni) + ".txt")
NEXT
COPY FILE (cSource + "f1.txt") TO (cSource + "f2.txt")
COPY FILE (cSource + "f1.txt") TO (cSource + "f3.txt")
*********************
* end of preparations
*********************
strtofile(chr(0x50)+chr(0x4B)+chr(0x05)+chr(0x06)+replicate(chr(0),18),cFileZip)
o=CREATEOBJECT("shell.application")
llErr = .T.
FOR lni = 0 TO o.NameSpace(cSource).items.count - 1
ofile = o.NameSpace(cSource).items.item(m.lni)
o.NameSpace(cFileZip).copyhere(ofile,4)
DO WHILE INLIST(o.NameSpace(cFileZip).items.count, 0, m.lni)
sleep(50)
ENDDO
ENDFOR