VBA Code to tar.gz a bunch of files

neodjandre

Well-known Member
Joined
Nov 29, 2006
Messages
950
Office Version
  1. 2019
Platform
  1. Windows
I have two folders called "images" and "thumbs" and would like to tar.gz all the files inside these folders (flat structure).

Reason for this is to upload to my server and untar - that would be faster than ftp-ing the images individually i think..

Any help or other alternatives would be much appreciated

Andy
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Andy

What do you use when you tar.gz the files manually?
 
Upvote 0
Hi Norie, think i remember you from ozgrid! i am not using anything at the moment - I just read this format would be better than .zip - i wouldn't mind if I .zip the files either - just looking for the best solution as it's about 10,000 of them..
 
Upvote 0
Andy

I had a look and a few people were asking similar questions.

The most common suggestion appeared to be to use the command line, which I suppose you could use via Shell.

Of course you would need to be using something, eg WinRAR, what could be executed via the command line.
 
Upvote 0
ok norie, this is quite helpful.. i have winrar and winzip so i hope i can find some code around the internet.. everyone feel free to post a working solution here as well - will try all suggestions..
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,705
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top