1. Junior Member
Join Date
Oct 2017
Posts
1

## Shell Script to Extract Password Protected Zip File

My goal is to setup a job that grabs all file names from a certain folder and passes them through as arguments to the shell job & corresponding batch script. The batch script looks like such:

The current job is setup to 1) Start --> 2) Add filenames to result --> 3) Shell job.

Within #3, I have checked "copy previous results to args", but do not know how to reference the filenames/args from the "Add filenames to result" step to then pass into the %1 variable within the batch script.

I've searched throughout forums but could not figure this out. Apologies if I missed something that covers this - any guidance would be greatly appreciated.

2. Senior Member
Join Date
Jun 2012
Posts
5,534
You may have missed the fact that "result rows" and "result filenames" are not the same thing: One is a list of filenames, the other carries data rows.
Option "copy previous results to args" is tied to "result rows" which must be provided by a transformation via step "Copy-Rows-To-Result".

Why don't you just enhance the script like:

Code:
set /p @PASSWORD=<%USERPROFILE%\.auth\zip-password.txt
forfiles /P "path\to\zipfiles" /M "*.zip" /C "cmd /c 7z e @path -P %@PASSWORD%"

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•