0

How do I implement an execute process task to extract all files in a directory using 7z. exe in SSIS ?

I am trying to unzip all files in a certain directory using 7z executable but it gives a process error code 2.

user717316
  • 99
  • 1
  • 4
  • 12

1 Answers1

0

Make sure you are specifying a WorkingDirectory rather than specifying the full path for the file in the arguments.

Tim Ebenezer
  • 2,714
  • 17
  • 23
  • Working Directory is directory where zip files are. Arguments is e destination directory -aoa – user717316 Aug 01 '13 at 16:01
  • Your arguments should be e -o note the lack of a space between -o and the destination. So to unzip all files you'd use e *.zip -oC:\foldertoextractto – Tim Ebenezer Aug 02 '13 at 09:24