Getting a list of file names from a zip file

Overview

The get file list from zip file instruction allows a user to extract a list of the names of all the files contained within a zip file into an Excel worksheet. The instruction can be configured to generate the list of names in either ascending or descending order.

For the purposes of this article we are going to use two simple and fictitious Excel files. They have already been uploaded into a data step. You will want to replace these files with those of your own.

Before we get started

Please further create a ‘Manipulate a file’ or ‘Multiple file manipulations’ action step so that you can add and use instructions.

The source file that we are going to use contains the following 4 files as viewed from Windows Explorer:

The target file that we are going to use is a standard fresh Excel workbook which contains 3 empty worksheets.

Steps

1. Create a ‘Get file list from zip file’ instruction.

2. Link the file named “Source” as the source file.

3. The rule for ‘File list sort order’ should be set to Ascending by default.

4. Link the file named “Target” as the target file.

5. Use Sheet1 from the target file.

6. Use cell A1 from Sheet1.

7. Save and run the step.

8. After the step finishes running, download and open the target file. It will resemble the image below:

Leave a Reply

Latest Tweets

Free eBook: 10 Tips for sourcing good data yucalc.com/2017/02/17/fre…

reply · retweet · favorite

Newsletter

By signing up, you agree to our Terms of Service and Privacy Policy.

Address

Suite 1506, Westfield Tower 2, 101 Grafton St Bondi Junction NSW 2022 Australia

View Larger Map

Contact Us

AUS: +61-2-9386-0202
UK: +44-20-8123-1251
Send us an email

ContactUs.com
WordPress Image Lightbox