zip.save("myzipfile.zip") is saving file under c:\windows\system32\myzipfile.zip

Oct 7, 2009 at 4:25 PM

Hi,

First of all great dll to work with. Great job and keep it up. I am trying to use this DLL in my SSIS package. it is working fine but the only problem I am facing right now is the file zip.save function saves the file under "c:\windows\system32" folder and I want to save this file at a different location. I was unable to do that. Can you help in this regard please.

 

Thanks,

Zia Rizvi

Coordinator
Oct 7, 2009 at 5:25 PM

Did you try passing in a full path?

eg, if you want to save at c:\users\zia\documents\myfile.zip, then pass *that* as the argument to ZipFile.Save().

 

Oct 7, 2009 at 6:40 PM
Edited Oct 7, 2009 at 6:44 PM

Hey Cheeso,

Thanks a billion. It is amazing that sometime such an abvious thing is missed out when you are under pressure. And someone tells you and you try it and it works. Can't thank you enough.

I updated the code as you suggested and it worked.

Thanks,

Zia

Coordinator
Oct 7, 2009 at 8:25 PM

No problem, I'm glad to help, Zia.