Exporting files wit...
 
Notifications
Clear all

Exporting files within folders

9 Posts
4 Users
0 Likes
317 Views
Redcelica67
(@redcelica67)
Posts: 130
Estimable Member
Topic starter
 

I hope someone can help here. I have processed a drive with FTK 4.2 and I have several thousand folders containing pairs of files that I have to export.
Each file is an XML with a corresponding HTM file, each pair being in their own folder. All of the XMLs have the same file name but have different hash values.

I need to export each folder and retain the associated file pair within it. When I export using FTK, it exports the folder and files but it seperates them. I end up with a load of empty folders with files seperated from them. When I choose the option in FTK to "Include Original Path", this exports the folders, retaining the files within, but the whole folder hierarchy is included and always goes back to root, therefore I end up with several layers of folders before I can get to my target folders that contain my pairs of files. I have spoken with AccessData tech support but and what I am trying to achieve cannot be done using FTK.

I am working on an e0.1 image of a drive and this is a data organisation exercise I have to do, enabling the folders with the files in to a database. If anyone has any ideas of a staright forward way of doing this or of any 3rd party tools then I would be really grateful! )

David

 
Posted : 23/05/2013 3:59 pm
jaclaz
(@jaclaz)
Posts: 5133
Illustrious Member
 

Any reason why you cannot script the copy in a batch (or similar)?

jaclaz

 
Posted : 23/05/2013 4:10 pm
Redcelica67
(@redcelica67)
Posts: 130
Estimable Member
Topic starter
 

Hi Jaclaz, I guess there may be a script for Robocopy (I'm on Win 7) but I am on a tight deadline and I was hoping there may be a tool or straight forward method. Thanks for the suggestion and I'll take a look into it now. Any other ideas would be welcomed.
David

 
Posted : 23/05/2013 4:19 pm
(@jonathan)
Posts: 878
Prominent Member
 

After exporting with "Include Original Path" why not navigate to the containing folder that contains the folders you require and copy that folder to a location of your choice?

 
Posted : 23/05/2013 5:45 pm
Redcelica67
(@redcelica67)
Posts: 130
Estimable Member
Topic starter
 

The directory of folders has 12 levels and on the 12th level there are around 10,000 folders. Each of these has 2 files and I need to export each of these invilidual folders, still containing their respective files.

 
Posted : 23/05/2013 6:25 pm
(@mitch)
Posts: 135
Estimable Member
 

Do it in encase seeing you have the e01 files a lot easier.

 
Posted : 23/05/2013 6:37 pm
Redcelica67
(@redcelica67)
Posts: 130
Estimable Member
Topic starter
 

Thanks Mitch. I'll give it a try……….

 
Posted : 23/05/2013 6:38 pm
jaclaz
(@jaclaz)
Posts: 5133
Illustrious Member
 

The directory of folders has 12 levels and on the 12th level there are around 10,000 folders. Each of these has 2 files and I need to export each of these invilidual folders, still containing their respective files.

Let me get this right.
Say that you mount the .e01 with a virtual driver such as
http//www.osforensics.com/tools/mount-disk-images.html
as F\
You have
F\1\2\3\4\5\6\7\8\9\A\B\C\folder_00001
up to
F\1\2\3\4\5\6\7\8\9\A\B\C\folder_10000

And you need to copy them to (say) drive G\ like
G\mynice_folders\folder_00001
up to
G\mynice_folders\folder_10000

Wouldn't that be a one liner?
robocopy F\1\2\3\4\5\6\7\8\9\A\B\C G\mynice_folders /S

jaclaz

 
Posted : 23/05/2013 8:18 pm
Redcelica67
(@redcelica67)
Posts: 130
Estimable Member
Topic starter
 

Thanks again Jaclaz. My colleague Mario came up with a batch file that I ran and it did the job.

@echo off
SET /a i = 0

loop
IF %i%==%1 GOTO END

for /r %%f in (.) do @move "%%f" .

SET /a i=%i%+1
GOTO LOOP

end

for /r %%f in (.) do @rmdir "%%f"

I saved it as batch.bat in the root folder and ran it from cmd how many layers there were in the directory and everything was exported correctly.

I appreciate you taking time to answer me.

David

 
Posted : 23/05/2013 8:28 pm
Share: