npocmaka / batch.scripts

batch script utils and examples by npocmaka -
https://www.linkedin.com/in/npocmaka/
MIT License
1.07k stars 874 forks source link

Option -keep no is unreliable #18

Open JohanHeyvaert opened 5 years ago

JohanHeyvaert commented 5 years ago

Hi, Thank you for this great script!

The option -keep no doesn't seem to be reliable though. Sometimes the source folder remains to exist; some of its contents was deleted, but not all if it. I've worked around this by performing an RD of the source folder aftwerwards.

Best regards, Johan

npocmaka commented 5 years ago

@JohanHeyvaert - I suppose you have issues with -keep false when zipping a content (as you are able to use rd command)? I will check this during the weekend.

JohanHeyvaert commented 5 years ago

That is correct. I use the following parameters: zipItem -source "!destPath!" -destination "!zipPath!" -keep no -force yes destPath is a variable containing a path to a folder. zipPath of course is a path to the destination zip file.