Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 URGENT - Unzip file using execute process task

Author  Topic 

sgandhi
Posting Yak Master

115 Posts

Posted - 2009-03-31 : 06:49:18
Hi, how do i unzip files looping through all files in a folder.

I know i need to create a for each loop container and for each file enumeration assign a value to a new variable (Filewejustfound)

Then inside the container put a execute process task.

How do i set up this task

sgandhi
Posting Yak Master

115 Posts

Posted - 2009-03-31 : 11:09:35
I think my problem is the when it takes the input file from the loop, the path is c:\documents and settings\ ....

how do i put double quotes around this. When i ran this is get
Invalid File name c:\documents.zip

I think its picking up the file path rather than the name.
Go to Top of Page

rgombina
Constraint Violating Yak Guru

319 Posts

Posted - 2009-03-31 : 12:30:47
Try putting the zip in a different location such C:\temp\documents.zip. It might breaking the folder link with space on the name.
Go to Top of Page

sgandhi
Posting Yak Master

115 Posts

Posted - 2009-03-31 : 12:59:40
Thanks that worked, although i didnt want to do that, but i guess its probably the best thing to do in this situation
Go to Top of Page

sgandhi
Posting Yak Master

115 Posts

Posted - 2009-04-01 : 10:42:17
quote:
Originally posted by sgandhi

Thanks that worked, although i didnt want to do that, but i guess its probably the best thing to do in this situation



One more thing. How do i make it do a fastest unzip?
Go to Top of Page

sgandhi
Posting Yak Master

115 Posts

Posted - 2009-04-01 : 11:57:18
Somebody please help. I found that i need to put -es or something but where do i put this. I want it to uncompress super fast. Please help this is urgent
Go to Top of Page

sgandhi
Posting Yak Master

115 Posts

Posted - 2009-04-02 : 08:59:47
Please help
I need to loop around a group of files
xml.gz and unzip them to another location.

I have set a variable in the foreach loop container to filewejustfound

what do i put in the arguments section of the execute process task. I need it to unzip as fast as possible.

I really need a solution to this
Go to Top of Page

rgombina
Constraint Violating Yak Guru

319 Posts

Posted - 2009-04-02 : 09:24:26
http://www.thejoyofcode.com/SSIS_Compress_File_Task.aspx

http://www.cozyroc.com/ssis/zip-task

http://www.sqlservercentral.com/articles/SSIS/64028/

http://rafael-salas.blogspot.com/2008/10/ssis-compress-files-using-execute.html

http://pragmaticworks.com/community/blogs/nayanpatel/archive/2008/11/13/how-to-loop-through-files-in-a-specified-folder-load-one-by-one-and-move-to-archive-folder-using-ssis.aspx
Go to Top of Page
   

- Advertisement -