Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZIP correct file/folder path ?
#2
for a single file can do this
Code:
Copy      Help
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
Code:
Copy      Help
;//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 
Code:
Copy      Help
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
Code:
Copy      Help
str zf="$desktop$\test.zip";;name and location of new zip file
str sf="c:\\00\*.txt";; folder to zip
str sw
out "zip"
zip zf sf 0 sw
if(sw.len) out sw


Messages In This Thread
ZIP correct file/folder path ? - by 963 - 10-29-2021, 06:05 AM
RE: ZIP correct file/folder path ? - by Kevin - 10-29-2021, 02:45 PM
RE: ZIP correct file/folder path ? - by 963 - 10-29-2021, 04:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)