1

We work with a lot of Microsoft Access files for different costumers. That files are saved in different folders(also in subfolders) for every year separated by year,costumer ,month, etc.

The main thing here is that I want to compress all the access files because they weight a lot and they're consuming our DFS space...

I tried with 7za but I can't figure out how to compress each file on each folder containing that file. The script that I've done compress all the access files in one packet, in one concrete folder... That's no a solution.

What I tried:

7za.exe a -r -t7z accessfiles.7z *.accdb

Is there any way to do what I want?

(sorry for my english, I'm trying to do my best!)

kodeone
  • 35
  • 6

2 Answers2

1

from a command prompt: compact /C <path>\*.accdb /S

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
  • Thanks Joeqwery! But this command compact the info a little bit... I need to rar it or zip it... – kodeone Nov 14 '14 at 08:29
1

With the help of another user in stackoverflow I found that solution for /r "C:\folder\blabla" %a in (*.accdb) do 7za -tzip a "%a.zip" "%a"

kodeone
  • 35
  • 6