ScriptSpot home

2 bat scripts for managing archive files

we all have the bunch of archives with a lot of unwanted files within it, we all have numerous files spread over HDD which should be archived... Those 2 little bat scripts help a lot! PS-Those are windows bat scripts, not 3dsmax scripts

Downloads

3ds Max compatibility
2012 (author declared)
Report a problem
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Version
2012
Tested by author
2017
Original version requirement
2012
Author’s update date
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

Bare

More by this author

Description

2 small bat scripts for faster and easier managing compressed archives.
Just save the text as .BAT file and start within folder you want to make changes

NOTE: attached *.MS file is just a text file within explanation and bat scripts.


1. archive clean files.bat, delete all the files in the archive from the list without expanding the archive
basically open on the fly, delete them, and repack again
so, you can delete all OBJ FBX files from your archives you do not want...
for /r %%i in (.rar .zip) do "C:\Program Files\WinRAR\WinRAR.exe" d -IBCK -inul "%%i" .3ds .fbx .dwg .obj .txt .url .c4d .skp .mtl .dxf

2. archive and delete files.bat compress the specific files, like .MAX or .HDRI and than delete them leaving the archive in same location as previous file was
@echo off
for /r %%i in (.max) do (
   echo Compressing "%%i"
   "C:\Program Files\WinRAR\WinRAR.exe" a -IBCK -inul "%%~dpi%%~ni.rar" "%%i"
   del "%%i"
)


3.  delete ALL but leave ONE of specific file extension files....ahaha, I do not know to make it.
But it could be life saver, like in most archives you have
file corona 2018.max
file corona 2015.max
file vray 2015.max
file vray 2018.max
which is terrible waste of HDD space, removing ALL but leave random one would be great
making the rule of WHAT file to delete would be hard to make, as we have a lot names conventions
but delete all 1+ files would be just enough as vray<>corona convertors works very well.
If some know to make it, it would be great!

Comments (0)