hi,
i try ,still same thing.
regards.
thanks.
>Hi Mohammed,
>
>just a wild guess, but could it be that you are creating the zip file in the same folder that you are trying to add files to the zip file from? Maybe your code is trying to add the zip file to itself while it is still being created?
>
>I would try setting cFileZip to another folder and see if that solves your problem.
>
>
>>hi all,
>> any idea,help
>>
>>i got error message when i try to run this code under.
>>
>>VFP9.EXE-APLLICATION ERROR
>>The Instruction at "Ox7338aa25" referenced memory at "Ox7338aa25", the memory could not be" READ"
>>
>>
>>
>>cFileZip = "d:\epsoss\rpart2.ZIP"
>>cSource = "d:\epsoss\"
>>strtofile(chr(0x50)+chr(0x4B)+chr(0x05)+chr(0x06)+replicate(chr(0),18),cFileZip)
>>o=CREATEOBJECT("shell.application")
>>FOR EACH ofile IN o.NameSpace(cSource).items
>> o.NameSpace(cFileZip).copyhere(ofile)
>>ENDFOR
>>
>>
>>thanks.