• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

want to batch compress/delete files

merk

Senior member
Hello,

I was wondering if anyone knows of a way that i can schedule a task in windows so that it will go into a folder, c:\backup and all subfolders in there, and compress all the files *.bak into their own individual backup files. And then delete the original file so that only the compressed file remains. I dont particularly care what compression format is used. I normally use 7zip, but rar or zip or whatever is fine.

Just to be clear - i want each file to go into it's own compressed archive. i don't want a single archive with all the .bak files in it.

thanks
 
you want us to RTFM and make you a script or DO you want help locating the cmd line switches for 7zip/zip/etc ?
 
search for:
- how to write a basic batch file
- how to loop through files
- how to filter files
- how to compress files via commandline

Once you know this these things, it will be easy.
 
Back
Top