Keyword: ZIPFILE - Create zip from file(s)

Keywords are used within scripts that enabled powerful features such as dynamic variables, clipboard manipulation, read/write files, mimic inputs and more.
User avatar
YiMeng
Author
Posts: 235
Joined: Sat Jul 18, 2020 10:58 pm
Location: NY
Contact:

Keyword: ZIPFILE - Create zip from file(s)

Unread post by YiMeng »

Description
  • Create or append specified file to a compressed zip file.
  • Can be used with FILEMON(R) to archive all files in a directory to a specified zip file.

Parameters
  • x: specify the full file path for the file that you want to zip.
  • y: specify the full file path for the zip to be saved.
  • After all files are send to zip. It is required to issue "ZIPCLOSE" as a separate follow up command to indicate closure of the zip file.

Usage
  • ZIPFILE x >> y
  • ZIPCLOSE
  • REPEATS 1 ZIPFILE c:\secret.txt >> c:\secret.zip | ZIPCLOSE
  • FILEMON @@ >> ZIPFILE %FILE% >> c:\secret.zip
    • This script will save all current automation object into a zip file and save it at c drive.