10-29-2021, 02:45 PM
for a single file can do this
for multiple file can do this
for a folder can do this. This will zip all the files and files in subfolders
or lets say you only wanted to zip text files in that folder can do this
str zf="$desktop$\test.zip";;name and location of new zip file
str sf="c:\\test.txt";; file to zip
str sw
out "zip"
zip zf sf 0 sw
if(sw.len) out sw
for multiple file can do this
;//for multiple files can do this
str zf="$desktop$\test.zip";;name and location of new zip file
str sf=
;c:\\test.txt
;c:\\test2.txt
;c:\\test3.txt
;c:\\test3.txt
str sw
out "zip"
zip zf sf 0 sw
if(sw.len) out sw
for a folder can do this. This will zip all the files and files in subfolders
str zf="$desktop$\test.zip";;name and location of new zip file
str sf="c:\\00";; folder to zip
str sw
out "zip"
zip zf sf 0 sw
if(sw.len) out sw
or lets say you only wanted to zip text files in that folder can do this