Quantcast
Viewing all articles
Browse latest Browse all 24688

How to UnZip File which Zipped Using WinRAR by Using "Execute Process Task" in SSIS

Hi All

Here is the Steps to UnZip  File which Zipped Using WinRAR by Using "Execute Process Task" in SSIS

<//span>

Step-1

Download the WinRAR open source software (yes, it is free!)

Step-2

Note down the path where WinRAR got installed. In My case it is C:\Program Files (x86)\WinRAR\WinRAR.exe

Step-3

Execute Process task EditoràProcessàExecutableà pasteà C:\Program Files (x86)\WinRAR\WinRAR.exe

Step-4

Execute Process task EditoràProcessàArgumentsàPasteàe  -o F:\Shivendoo\Test.rar

Here e extract & -o Over Write existing.

Source Path= F:\Shivendoo\Test.rar

Destination Path: F:\Shivendoo

Note: Paste Destination Path to WorkingDirectory as I have mentioned in Step 5. So Files under Test.rar will be Unzipped & will be kept at F:\Shivendoo.

Step-5

WorkingDirectoryà F:\Shivendoo

Step 4 can be handled by Package Variable. Create 1 variables V_Source at package level.

So Here

V_Source= F:\Shivendoo\test.rar

Now Click on AgrumentsàGo to Expression (Left Side Top Last)àExpand ItàSelect Properties=Arguments & Paste value "e "+ "-o"+ @[User::V_Source] OR "e "+@[User::V_Source] + " -o" under Expression field.

After doing this setting, It is working fine but each time a Error window is Opening & displaying Error Message “Unknown Option O”, after clicking on Ok it is working fine 1<sup>st</sup> time. If file already exists, another window “Confirm File Replace”  opening & Once I click “Yes to All” It is working.

Anyone please can you suggest how to avoid Error Message “Unknown Option O” & “Confirm File Replace”  Windowà“Yes to All”

http://www.sql-server-performance.com/2008/ssis-unzip/

http://knowledgehub.wordpress.com/2010/11/02/unzip-using-execute-process-task-in-ssis/

http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/00f110d9-9be8-481c-9696-75be9973e728


Thanks Shiven:) If Answer is Helpful, Please Vote


Viewing all articles
Browse latest Browse all 24688

Trending Articles