Hi,
I am trying to run reports or scripts for large numbers of files in recursive directories (400,000 files), we are trying to sort files out and decide what to archive etc..
If I run a Metadata Report to .csv I get the attached error.
I was wondering if I ran a script to retrieve just the data that I want, could I write this data to a file on the fly to eliminate a build up of records in memory? If this is possible, what would the syntax be? I tried a few pipe type commands, but these didn't seem to work.
Thanks, db.
Working with large number of files
-
aka_db
- Posts: 7
- Joined: 22 Nov 2013 06:07
Working with large number of files
To see the attached files, you need to log into the forum.
-
aka_db
- Posts: 7
- Joined: 22 Nov 2013 06:07
Re: Working with large number of files
Hi, an update...
After my original process crashed after some 40 hours of processing, I changed the parameters and excluded about 20,000 directories, just included the files and actually managed to get a result after about 4 hours.
I would still like to find a way to push the results on the fly to a file if possible, that way if it crashes I could just restart from where it left off.
Cheers, db.
After my original process crashed after some 40 hours of processing, I changed the parameters and excluded about 20,000 directories, just included the files and actually managed to get a result after about 4 hours.
I would still like to find a way to push the results on the fly to a file if possible, that way if it crashes I could just restart from where it left off.
Cheers, db.
-
binocular222
- Posts: 1423
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Working with large number of files
You can make a loop:
- From item 1 to 50,000: Write to file1.txt
- From item 50,001 to 100,000: Write to file2.txt
etc
Then consolidate these .txt file
Refer to help file > Advanced Topic > Scripting Command reference
writefile(filename, data, [on_exist], [mode])
- From item 1 to 50,000: Write to file1.txt
- From item 50,001 to 100,000: Write to file2.txt
etc
Then consolidate these .txt file
Refer to help file > Advanced Topic > Scripting Command reference
writefile(filename, data, [on_exist], [mode])
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
admin
- Site Admin
- Posts: 66360
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Working with large number of files
GOSH!aka_db wrote:After my original process crashed after some 40 hours of processing...
Which button did you press that started this process? Or was it a script?
FAQ | XY News RSS | XY X
XYplorer Beta Club