Skip to main content
Question

reading self-extracting zip files

  • January 25, 2016
  • 7 replies
  • 79 views

jdh
Contributor
Forum|alt.badge.img+40

Has anyone had any success reading directly from a self-extracting zip file (.exe)?

 

 

I'm trying to automate the processing of a regularly occurring delivery that comes as a self-extracting zip file and I would like to avoid the step of manually extracting it.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

takashi
Celebrity
  • January 26, 2016

I don't think there is a way to read contents of a self-extracting file directly. If the file can be extracted with just executing it from a command line (without showing dialog boxes), the SystemCaller might be helpful to extract it automatically.


jdh
Contributor
Forum|alt.badge.img+40
  • Author
  • Contributor
  • January 26, 2016

I don't think there is a way to read contents of a self-extracting file directly. If the file can be extracted with just executing it from a command line (without showing dialog boxes), the SystemCaller might be helpful to extract it automatically.

I'm working on that now. I'm trying to find a switch that doesn't expect a user response for Overwrite existing files.

 

 

Interestingly enough, if I rename the .exe to .zip (not an option for production) FME will read it directly.

takashi
Celebrity
  • January 28, 2016

I'm working on that now. I'm trying to find a switch that doesn't expect a user response for Overwrite existing files.

 

 

Interestingly enough, if I rename the .exe to .zip (not an option for production) FME will read it directly.

Interesting, but I couldn't read a self-extracting file though changed the extension to .zip. Probably depending on the application which was used to create the file.


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • January 28, 2016

I'm working on that now. I'm trying to find a switch that doesn't expect a user response for Overwrite existing files.

 

 

Interestingly enough, if I rename the .exe to .zip (not an option for production) FME will read it directly.

The Winzip tool apparently has an option to overwrite without prompting: http://kb.winzip.com/kb/entry/115/


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • January 28, 2016

I'm working on that now. I'm trying to find a switch that doesn't expect a user response for Overwrite existing files.

 

 

Interestingly enough, if I rename the .exe to .zip (not an option for production) FME will read it directly.

7-Zip has a switch (-y) to assume Yes for all questions. And 7-Zip is freeware and can be used on a command line, so it can be used in the SystemCaller.


jdh
Contributor
Forum|alt.badge.img+40
  • Author
  • Contributor
  • January 28, 2016

I was able to use the SystemCaller to extract the file with a /Overwrite switch.

 

 

I have no idea what application was used to create the archive but it was not Winzip, because none of the Winzip switches worked.

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • January 28, 2016

This discussion lead me to adding an idea to the list:

Adding UNZIP functionality to the File Copy Writer.

In combination with the Directory and File Path reader this would allow for unzipping multiple files using FME.