Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to add to RAR archive 40k files without using windows search.

10 Jan 2015   #1
TJGOA

Windows 7 Home Premium 64-bit SP1
 
 
How to add to RAR archive 40k files without using windows search.

I have over 40 thousand files I need to archive spread throughout a drive in different folders. I cannot use windows search because the drive cannot be index and will take quite some time to fix and solve. Is there another method that can allow me to search a drive and add to winrar .rar archive? I've used some file searches but there isn't an option to use rar to archive the search results. One program, effective file search, can allow this, but if I select more than 5k files it crashes! Windows can select them all however if I could manage to have them show up all in a search, which I can't for now. Is there a way to achieve what I'm trying to do? Please Help!!


My System SpecsSystem Spec
.
10 Jan 2015   #2
Berton

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
 
 

I don't have indexing turned on for a couple of drives and have no problem with the Search function, as the popup shows it may take longer. It sounds like you'd better fix the problems with the drive before they become a bigger issue.
My System SpecsSystem Spec
10 Jan 2015   #3
TJGOA

Windows 7 Home Premium 64-bit SP1
 
 

The search works but incomplete. If i use a 3rd part file searcher it brings of 44k files that I need copied on this drive. If I use windows search it is 14k. It actually depends where I search on the drive. Where I know where most of the files are it is over 20k when I should that folder. If I go to the root H: and search I get WAY less results. Its not searching the entire drives folders and subfolders etc. So I decided to index the drive at first. After 24 hours and quite a few files I paused the index scan and searched the drive with windows and 44k files showed up. However I could not select them all at the same time, probably cause the scan was incomplete and paused.
My System SpecsSystem Spec
.

10 Jan 2015   #4
TJGOA

Windows 7 Home Premium 64-bit SP1
 
 

Does someone know if windows indexing searches within rar folders? Would a file within a rar folder show up in windows search after the drive has been indexed?
My System SpecsSystem Spec
10 Jan 2015   #5
TJGOA

Windows 7 Home Premium 64-bit SP1
 
 

Right now I'm trying the option always search file names and contents in the windows search option menu. Hopefully all the files will show up. Even if it takes hours to search its better than a day of indexing. I will sort out the problem with the drive asap though. Any idea how long scanning the drive for errors takes?
My System SpecsSystem Spec
10 Jan 2015   #6
Alejandro85

Windows 7 Ultimate x64
 
 

Forget about the crippled built-in Windows search, it doesn't give correct results, and the index takes way too much to get in good shape. For search in Windows 7 third party programs are a must.

For file search I use File Locator Lite (the free version) which works ok with many files. I tried selecting tons of them and, while it becomes noticeably slow, it still works acceptably.

However, a better built-in solution could be to use the command line. Copy all files that matches the criteria to a temporary folder, then just rar it using normal Windows Explorer. For example:

Code:
xcopy g:\*.jpg c:\temp /s /f
This will copy all jpg files on the G drive (incluiding all subdirectories) to C:\temp folder, recreating whatever folder structure they are. Look at the xcopy help (xcopy /?) for further reference.
This one in contrast:

Code:
for /r g:\ %f in (*.jpg) do copy "%f" "c:\temp\"
Will copy the same files but without recreating the folders (ie all together in destination folder). Look here for some references too.
Which you use will depend on how you want your rar archive to be arranged.

In any case, compressing all the separated files from the temp folder is now trivial. Remember to delete them afterwards so they don't waste your HD space.
My System SpecsSystem Spec
10 Jan 2015   #7
TJGOA

Windows 7 Home Premium 64-bit SP1
 
 

I was thinking of just copying the entire search results to a folder, but it totals 155 GB. With winrar it would preserve file order which is awesome. Thanks for sharing that method, but am unsure if it will be any better than the search windows uses just because its from a command line. Wouldn't the results be the same. It would be a trivial matter if the index would complete and not take days to accomplish. I've tried a few programs but if I select more than 5k they crash. I'm trying to select 40k so... I have that program already and it won't let me select more than 5k and its the pro version.
My System SpecsSystem Spec
10 Jan 2015   #8
TJGOA

Windows 7 Home Premium 64-bit SP1
 
 

Quote   Quote: Originally Posted by TJGOA View Post
Right now I'm trying the option always search file names and contents in the windows search option menu. Hopefully all the files will show up. Even if it takes hours to search its better than a day of indexing. I will sort out the problem with the drive asap though. Any idea how long scanning the drive for errors takes?
This doesn't work either, just 7 k results where I know there are 44k! This is frustrating!!!
My System SpecsSystem Spec
10 Jan 2015   #9
Alejandro85

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by TJGOA View Post
With winrar it would preserve file order which is awesome.
What do you mean by "file order". Files within folders don't have any ordering.



Quote   Quote: Originally Posted by TJGOA View Post
Thanks for sharing that method, but am unsure if it will be any better than the search windows uses just because its from a command line. Wouldn't the results be the same.
Results will be widely different. Command line is not that relevant, but in fact has an advantage over GUIs here. I'm suggesting primarily because copy and xcopy don't rely on the broken Windows Search service, which gets consistently wrong results. Also, being command line only means that the computer don't has to manage the screen output and thus you avoid large overheads of managing lists with thousands of elements, which is always slow.

Where any method will crawl is when copying 150GB of files over. That itself will take some time.
Command line utilities don't waste time drawing fancy GUIs and just spend time doing the actual work. This is a good point when you have that many files to be processed.
My System SpecsSystem Spec
10 Jan 2015   #10
dsperber

Windows 7 Pro x64 (1), Win7 Pro X64 (2)
 
 

Quote   Quote: Originally Posted by TJGOA View Post
I have over 40 thousand files I need to archive spread throughout a drive in different folders. I cannot use windows search because the drive cannot be index and will take quite some time to fix and solve. Is there another method that can allow me to search a drive and add to winrar .rar archive?
The highly regarded 3rd-party Everything Search facilitates exactly what you want, I believe (it has its own index of all file names, having nothing to do with Windows Search).

Do your search (which by file name is effectively "instantaneous" as you type, across ALL drives of your system unless you limit the search in some way) to get the files you want appearing in the search results window.

Then simply select them all (select one of them, than CTRL+a to light them all up).

Then right-click on the now all-selected list, and select the WinRar item on the standard Windows Explorer popup menu, and click on the "add to archive..." item and name it whatever you want. The full path for each file will be retained in the output RAR/ZIP archive file, assuming you have that option checked (which it is by default).

Is this what you want?
My System SpecsSystem Spec
Reply

 How to add to RAR archive 40k files without using windows search.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
bulk delete certain types of files in rar/zip archive
i've got thousands of rar/zip files where each of them could have some types of files I don't want. for example, *.txt or *.html etc. I would like to know if there is any shortcut way to delete them all quickly? I don't want to do it one by one. I will go crazy
General Discussion
How to script a daily copy of files w/dt being name of archive folder
Hello, I need to figure out a Windows 7 script to copy/archive files which are located in a specific folder. It needs to copy daily to an archive folder, with the script creating the archive folder as MM-DD-YY (being that day's date that is being archived) before it archives the files to that...
General Discussion
Windows 7 search for files&folders...can i make it search like XP?
I asked this when i first got 7 about 1.5 years ago, but i never found a good replacement to make 7's file search anywhere near as good or similar as the XP search. Now 1.5 year later, is there anything like that?
General Discussion
removing damaged archive files?
Running win 7. Just scanned my C drive w/ESET and the scan turned up several damaged archived files (see below). Should I: 1. Delete the damaged archived files shown trusting that there won't be any repercussions later? 2. Leave everything as is and forget about it? 3. Any reason not to...
General Discussion
Trying to use batch code to parse and archive log files... Errors...
Hi all. I have a quick question about compressing a bunch of log files that have specific years at the end of their file names... Let's say I have the following set of files needing to be archived by year: BVC2v2Batch.01042008.log BVC2v2Batch.02042008.log BVC2v2Batch.01042009.log...
Software
Windows 7 search files and folders vs Outlook 2007 search
Hello, Can someone tell me some specifics and pinpoint the differences (or maybe a good website) that would pinpoint the differences between the Windows 7 search and the outlook 2007 search? I know the outlook search searches through email but are there other difference I am overlooking between...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:38.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App