Solved requires guidance on creating a file format

August 24, 2017 at 21:32:13
Specs: Windows 10
Hi,
can anyone tell me what is a 'file-of-filenames (fofn)' and how can I create a FOFN?

thanks in advance.


See More: requires guidance on creating a file format

Reply ↓  Report •

#1
August 25, 2017 at 03:21:59
I can't make any sense of your post.

Do you mean create a list of filenames in a folder?

See this:

https://support.microsoft.com/en-us...


Reply ↓  Report •

#2
August 25, 2017 at 19:52:16
✔ Best Answer
This sounds similar to my system of file-filing. All it does is make a textfile composed of all the files on my system, delimited by "star" with fields: file-size, date+time, name+extension, and fully-qualified-path. Batch-script can use this instead of re-negotiating the directory-tree, to look for specific sizes, dates, extensions, or paths, using 'find'. FSUM ouput would be a VERY helpful addition, but not done yet in my enveavors:
:: allfiles.bat

@echo off & setlocal
:: takes a "snapshot" of the disk for comparison purposes between operations.
:: the files' fullpath, date+time, and size are recorded for posterity, in
:: case any operation changes any of these properties of the file. An "fsum"
:: on each file would be REALLY nice, to see if content changed!
:: note that option "/a" with no specs will get ALL files {h,s incl}

if "%1"=="" (set out=all) else (set out=%1)
echo browser cache files will be filtered out. OUTPUT TO: %out%fils
(for /f "tokens=*" %%a in ('dir /a-d /b /s ^| find /v /i "content.ie5"') do echo *%%~za*%%~ta*%%~nxa*%%~pa*)>%out%fils
:: end script

note that the script runs from whatever root, so to get entire disk, you must "cd \" before running. output defaults to allfils. Obviously, this has to be maintained/refreshed periodically. backups could be saved of previous runs as needed, since current content is overwritten unless a different item is supplied.

message edited by nbrane


Reply ↓  Report •
Related Solutions


Ask Question