For various purposes I want to be able to list all the files I have in e.g.
folder 'D:........Census Images1911'
I've managed to produce a script that runs using 'lfs', but I can't get an output.
It seems to be a fairly short script needed. Has anyone got a suggestion please?
Martin
ID:6442
* Listing files in census folder
Listing files in census folder
I put this query together to try to sort out some multimedia files. Perhaps it could be a base for your requirement? Copy the output to a spreadheet if necessary.
- tatewise
- Megastar
- Posts: 28488
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Listing files in census folder
Martin, you do not say what form of output you want, or why you cannot get any output.
To just display on screen I think you could use the fhMessageBox() function.
Alternatively, you could create a Result Set using fhOutputResultSetColumn() and then you can Save or Print the Result Set.
To just display on screen I think you could use the fhMessageBox() function.
Alternatively, you could create a Result Set using fhOutputResultSetColumn() and then you can Save or Print the Result Set.
Listing files in census folder
Cracked it now, thanks.
I was a bit brief. What I wanted was a list of files in my census folders, that is the downloads that I have, to match them against the people with that census in the project while within FH. I know I have a number that have not been entered and it's a pain chasing them.
The result will now show a list of all files in the year entered.
It's not suitable for anyone else because their file paths will be different.
Doubtlesss I shall be back again now I've started writing these things and found the forum.
Thanks again,
Martin
I was a bit brief. What I wanted was a list of files in my census folders, that is the downloads that I have, to match them against the people with that census in the project while within FH. I know I have a number that have not been entered and it's a pain chasing them.
The result will now show a list of all files in the year entered.
It's not suitable for anyone else because their file paths will be different.
Doubtlesss I shall be back again now I've started writing these things and found the forum.
Thanks again,
Martin
Listing files in census folder
It might be interesting to see and others can rename their file path.It's not suitable for anyone else because their file paths will be different.
Anyway there are quite a few batch script file examples on Google showing how to do it. Search for window list folder contents
Listing files in census folder
I did try that and it got me nowhere because I couldn't find anything that fitted into the FH approach.
Anyway, see other thread fopr full details and it's available to anyone who is inteersted.
Martin
Anyway, see other thread fopr full details and it's available to anyone who is inteersted.
Martin
Listing files in census folder
If anyone is interested in a batch file I modified this from something found on the web.
You need to change the path to the folder you are saving the text file into.
Just drag and drop the folder you want to list over the icon.
You can chnage what is and is not displayed on line 1
@dir %1 /A /S > C:UsersAnthonyDocumentsdirListing.txt
@echo Opening C:UsersAnthonyDocumentsdirListing.txt in Notepad (Close notepad to delete file)
@notepad C:UsersAnthonyDocumentsdirListing.txt
@echo Deleting C:UsersAnthonyDocumentsdirListing.txt
@echo To keep the file comment out the next line with REM
@del C:UsersAnthonyDocumentsdirListing.txt
REM @pause
Use at own risk [wink]
You need to change the path to the folder you are saving the text file into.
Just drag and drop the folder you want to list over the icon.
You can chnage what is and is not displayed on line 1
@dir %1 /A /S > C:UsersAnthonyDocumentsdirListing.txt
@echo Opening C:UsersAnthonyDocumentsdirListing.txt in Notepad (Close notepad to delete file)
@notepad C:UsersAnthonyDocumentsdirListing.txt
@echo Deleting C:UsersAnthonyDocumentsdirListing.txt
@echo To keep the file comment out the next line with REM
@del C:UsersAnthonyDocumentsdirListing.txt
REM @pause
Use at own risk [wink]