One Star

Unable to unzip .Z file

One of my job requirement is to unzip the "abcd.csv.Z" file. ( file is stored in loacl folder)
am unable to do so with 'tFileUnarchive' component.
Can you please help?
its urgent...
Thanks in advance
5 REPLIES
Moderator

Re: Unable to unzip .Z file

Hi,
You can use 7zip/WinRaR to exact GZIP or .Z files and call 7zip/WinRaR with tSystem. Let me know if it is working with you.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Unable to unzip .Z file

Thanks Sabrina,
in tSystem
home directory = "C:/Program Files/7-Zip"
command : "cmd /c 7z e C:/Users/Downloads/abcd.csv.Z"
output :
|begin||
7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Users\782077\Downloads\abcd.csv.Z
can not open output file abcd.csv
Sub items Errors: 1
please assist...
Moderator

Re: Unable to unzip .Z file

Hi,
The error info is "1"? If so, it indicate it is warning, no fatal errors, such as some files are in use and it has not been compressed.
Is it successful when you use 7-zip to unzip your file by manual?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Unable to unzip .Z file

able to extract filr manually through 7z.
requirement is unzip .Z file without using external softwares like 7z.
Moderator

Re: Unable to unzip .Z file

Hi,
I have made a testing using tsystem call WinRAR to unzip .zip file . It is working well.
See my screenshot for details
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.