| 
			
			 | 
		#1 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644 
				Karma: 1242364 
				Join Date: May 2009 
				Location: The Right Coast 
				
				
				Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda) 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Wanted: Bulk automatic archival program for the PC?
			 
			
			
			Anyone know of an archival program for Win 8.1 that allows automatic, bulk archiving of all sub-folders and their contents, naming the resulting archive based on the sub-folder's name? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I would like to be able to set a starting directory and have the program walk the directory tree downward, adding all contents until it reaches the end. Going back to the top, it should do the same to all the other folder's in the starting directory. Here is a sample of what I mean. Code: 
	Directory Structure                         Output
----------------------                      ------------------
C:\User\Docs\                               [none, starting directory]
    Folder1\                                Folder1.RAR
        Page 01
        Page 02
    Folder2\                                Folder2.RAR
        Page 01
        Page 02
        Folder3                             [none, part of Folder2.RAR]
            Page 01
            Page 02
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Ex-Helpdesk Junkie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421 
				Karma: 85400180 
				Join Date: Nov 2012 
				Location: The Beaten Path, USA, Roundworld, This Side of Infinity 
				
				
				Device: Kindle Touch fw5.3.7 (Wifi only) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Batch file. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Code: 
	cd /User/Docs/
for i in */; do
    tar -czvf $i.tar.gz $i
done
Also investigate the WinRar cli syntax, if it has a cli backend that is -- but why oh why do you want to use RAR compression?   ![]() It is proprietary and not very interoperable. Last edited by eschwartz; 01-18-2016 at 10:40 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644 
				Karma: 1242364 
				Join Date: May 2009 
				Location: The Right Coast 
				
				
				Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			eschwartz, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Thanks for responding. The archive doesn't have to be in RAR format specifically. Any Win 8.1 supported archive formats will be considered provided they can automatically bulk archive subfolders & contents. I included the starting file path and resulting archive examples so readers could understand the input/output involved in case my wording was not clear. Two questions: 1) Does your batch file retain the original documents? (I would rather manually delete them only after confirming they were correctly archived.) 2) Can the resulting archive be written to a different destination path?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,251 
				Karma: 3720310 
				Join Date: Jan 2009 
				Location: USA 
				
				
				Device: Kindle, iPad (not used much for reading) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Why don't you buy a (cheap) USB hard drive, and back up to that?  Most, if not all of them come with backup software that will mirror your pc's hard drive.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Ex-Helpdesk Junkie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421 
				Karma: 85400180 
				Join Date: Nov 2012 
				Location: The Beaten Path, USA, Roundworld, This Side of Infinity 
				
				
				Device: Kindle Touch fw5.3.7 (Wifi only) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I can't think of any archive utilities that automatically delete input files.  
		
	
		
		
		
		
		
		
		
		
		
		
		
			![]() And specifying the output file can take any filename path. ... Since my example was using the unix (linux/OSX) bash shell... For a batch file, try something like: Code: 
	cd C:\User\Docs\
for /d %%d in ("*") do (
    7z.exe a C:\path\to\archive\%%d.zip %%d\
)
 ), but I *think* that will do it.You can change the archive name and extension and 7-Zip should do the right thing automatically based on your chosen extension (*.zip, *.7z, *.tar.gz should all work). %%d is the variable holding the name of the folder and also specifies the filename of the archive. This uses the http://7-zip.org command-line 7z.exe so it must be in your PATH or else you must specify the full location of 7z.exe Last edited by eschwartz; 01-21-2016 at 12:48 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238 
				Karma: 1500000 
				Join Date: Nov 2009 
				Location: Toronto 
				
				
				Device: Pandigital Novel (Black), T-2 and 3, Nexus 7 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Zip has the -m option that will move files into the archive. That is, it deletes the files after placing them in the archive. I don't have 7z installed so I don't know if it has that option as well. The zip archive format is supported everywhere.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Ex-Helpdesk Junkie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421 
				Karma: 85400180 
				Join Date: Nov 2012 
				Location: The Beaten Path, USA, Roundworld, This Side of Infinity 
				
				
				Device: Kindle Touch fw5.3.7 (Wifi only) 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Bulk fill title with same value (like bulk rename author)? | rebl | Library Management | 1 | 08-22-2014 01:05 PM | 
| Automatic Convert and Automatic Add not working together | kylliancole | Calibre | 3 | 08-04-2012 12:57 AM | 
| automatic updates | kabaczek124 | Amazon Kindle | 3 | 02-14-2011 04:47 AM | 
| K2 skins recommendations/reviews? Wanted: add grip, no bulk, good fit/coverage | Starhawk | Amazon Kindle | 12 | 03-24-2009 05:01 PM | 
| Automatic shut off? | Stacey34 | Sony Reader | 8 | 03-14-2009 07:11 AM |