-1

i would like to know how to get all single .bak (or anyother extension) files into a directory, and zipping them (one by one) and save them using the same name, changing only extension.

Thanks

stighy
  • 941

1 Answers1

4

For unixoid systems, see this.

On Windows, try something like this in cmd.exe:

for %f in (*.bak) do zipper_software %f %f.zip 

The exact syntax for this command will depend on the zip software you use. Note that you likely will end up with archive file names like file1.bak.zip.

Sven
  • 100,763