September 12, 2018 at 11:29 am
Hi,
I have a zip file and I am using Execute Process Task to Unzip them.
Below is the Expression I am using in the Arguments to Unzip the file.
This is working fine but I don't want to unzip all the files.
I only want to unzip this one file. (T_WC_VOL_2016_AND_LATER) .. Pic showed below.
Can anyone help me with this, please?
September 12, 2018 at 11:48 am
Which tool are you using to perform the unzip? Here's how to do it with 7-Zip, for example.
September 12, 2018 at 11:50 am
I am using 7zip.
September 12, 2018 at 12:51 pm
You can also do it in powershell
[System.IO.Compression.ZipFileExtensions]::ExtractToFile([IO.Compression.ZipFile]::OpenRead("C:\Test\Compress\testy.zip").GetEntry("New Text document.txt"), "C:\Test\Compress\uncompressed2.txt")
September 13, 2018 at 3:52 pm
Phil,
So should I write the expression like this now?
September 14, 2018 at 5:37 am
kashyap4007 - Thursday, September 13, 2018 3:52 PMPhil,
So should I write the expression like this now?
This is not something that I remember doing in the past. All I did was find the relevant link for you.
I suggest that you first of all practice getting the command line right outside of SSIS – in a batch file, perhaps.
Once you have that working, you will be in a better position to craft your expression in SSIS. To check/preview how SSIS will evaluate your expression, you can create a new string variable and add the above as the expression for the variable and then click the Evaluate button.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy