How to create a command line for winzip command tool in SSIS that can be used to archive file.

  • Hello,

    I would like to have codes and the illustration of steps to do in order to create a command line tools in SSIS which can be used to archive file.

    Thanks,

    Mark

  • Hello,

    create an 'execute process task'.

    In Process / Executeable insert the execute (...winzip.exe )

    In Expressions select the property Arguments. Here you insert

    "-a -ex zipfile.zip examplefile".

    A better approach is to work with variables for zipfile.zip and examplefile i.e.

    "-a -ex " + @[user::zipfile] + " " + @[user::file]

  • This expression will work with spaces in the folder location.

    "-min -m -en " + "\"" + @[User::UnZipFileName] + ".ZIP \"" + "\"" + @[User::UnZipFileName] + "\""

    The pain of Discipline is far better than the pain of Regret!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply