Kaseya Community

Zip and unzip file different machine

This question is answered

Hello,

I'm trying to accomplish the following challenge:

I have a folder with some .csv files and want to copy  them from one machine to the other machine (different networks). Because you can't copy a whole folder im zipping the folder with the .csv files first.

After zipping i'm transferring the file to the other machine. Now the following step is to unzip the file directly after transferring it. 
Is there a way to get it done in one same script?

Hope you understand what i'm trying to achieve.

Verified Answer
  • Don't think there is a way to do it in one procedure.

    You could make a second procedure that unzips the directory.

    Then, in the first procedure, Call the second procedure via the scheduleProcedure() step on the remote machine.

    First Procedure:

     zip files,

     copy zip file

     scheduleProcedure('Second Procedure' #destinationComputer#)

    Second Procedure:

     Unzip file that has been pushed to this server.

All Replies
  • Don't think there is a way to do it in one procedure.

    You could make a second procedure that unzips the directory.

    Then, in the first procedure, Call the second procedure via the scheduleProcedure() step on the remote machine.

    First Procedure:

     zip files,

     copy zip file

     scheduleProcedure('Second Procedure' #destinationComputer#)

    Second Procedure:

     Unzip file that has been pushed to this server.

  • Great option Ruben. Didnt noticed there was scheduleprocedure too.