ZipAddFiles -need files and selective sub folders

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
bbrink
Pro Scripter
Posts: 70
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

ZipAddFiles -need files and selective sub folders

Post by bbrink » Sat Jan 21, 2017 10:39 pm

Hi,

I have:

c:\mainfolder (with a bunch of files in it)
c:\mainfolder\subfolder1
c:\mainfolder\subfolder2 (with a bunch of files in it)

I want to zip up all of the files in mainfolder as well as all of the files in subfolder2
I do not want to zip up any of the files in subfolder1

I don't care if I end up with one zip file or two. No matter what I try I cannot get the files in mainfolder without getting everything else "below" that folder.

I try this
ZipAddFiles>c:\test.zip,c:\mainfolder\*.*,9,0,ZipResults

I try various combinations of wild cards, foreslashes, no foreslashes, one or zero in the "folders" parameter. No mater what I try if I get the files in mainfolder, I get everything below that too.

It seems like the folder 1/0 switch is broken. I flip that and my results don't change.

Thanks,

Bob

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: ZipAddFiles -need files and selective sub folders

Post by CyberCitizen » Mon Jan 23, 2017 12:57 am

Confirming the same behaviour on Macro Scheduler Pro v14.3.07.

Folder switch makes no difference, includes everything using *.* as well as the folders.
FIREFIGHTER

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1350
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: ZipAddFiles -need files and selective sub folders

Post by Dorian (MJT support) » Mon Jan 23, 2017 7:09 pm

I just tested it too and am experiencing the same thing. I'll document it for Marcus.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: ZipAddFiles -need files and selective sub folders

Post by Marcus Tettmar » Tue Jan 24, 2017 3:28 pm

Thanks for this. I have added to our bug tracker.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

bbrink
Pro Scripter
Posts: 70
Joined: Thu Dec 31, 2009 2:36 am
Location: Minnesota
Contact:

Re: ZipAddFiles -need files and selective sub folders

Post by bbrink » Sun May 07, 2017 9:45 pm

I see this was fixed. https://www.mjtnet.com/mswhatsnew.htm

thank you! -Bob

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts