Pendraken Miniatures Forum

Non-Wargaming Discussion => Chat & News => Topic started by: Last Hussar on 25 July 2023, 10:45:21 AM

Title: Converting list of file names into Excel document.
Post by: Last Hussar on 25 July 2023, 10:45:21 AM
Good Morning Gentlemen. And Nobby.

I am typing this from work, as this is a work related question.

I have a folder full of files, with Name, First Name, Reference Number as the file name

HORSEMAN, Heedless, AB123
HUSSAR, Last, ZX987

etc.

I have an Excel spreadsheet with this info on.

Is there a way to match the file names against the spreadsheet to see where they differ?

The Spreadsheet is correct - we need to know if there are files missing, or people not on the Spreadsheet that we still have the file for.

There are about 400 lines on the Excel file, and we don't really want to check by hand.

Any ideas?
Title: Re: Converting list of file names into Excel document.
Post by: Lord Kermit of Birkenhead on 25 July 2023, 10:49:36 AM
Sorry but I suspect its a Manual job.
Title: Re: Converting list of file names into Excel document.
Post by: Ithoriel on 25 July 2023, 10:56:15 AM
If you don't already have something set up to do this I suspect it would take longer to program than it would to get two people, one reading the file names and one the spreadsheet. The person reading the spreadsheet recites the list, the one checking file names sings out if there's a mismatch.

Sometimes manual procedures are best.

"Never underestimate the bandwidth of a stationwagon full of mag tape hurtling down the highway!"
Title: Re: Converting list of file names into Excel document.
Post by: fsn on 25 July 2023, 11:00:49 AM
Nah.

You just need to get a directory*, paste it into a new sheet on the spreadsheet. Remove all the preamble** and do a vlookup to see if you can find it.  :)


* In file explorer, highlight the files, then right click and select "copy as path"
** e.g.for files in my list "C:\Users\nobby\Downloads\Picture.png" I'd replace "C:\Users\nobby\Downloads\ and the final " to leave Picture.png


Title: Re: Converting list of file names into Excel document.
Post by: smallchild139 on 25 July 2023, 11:33:06 AM
Hi

Assuming windows, then an alternative is to open a command prompt and use dir>filename.txt, which will create a text file called filename.txt with the current folder filenames in it, which can then be read by excel.

You can navigate to the folder you want using the CD command (e.g. CD desktop takes you to the desktop folder)

There are various options for the dir commannd, which you can see using the dir /? command.

This works with all versions of windows (that I know of)

Mark
Title: Re: Converting list of file names into Excel document.
Post by: fsn on 25 July 2023, 12:11:36 PM
Indeed so.  :D

Title: Re: Converting list of file names into Excel document.
Post by: Last Hussar on 26 July 2023, 01:22:13 PM
 :o

Nobby was... right? It worked... IT WORKED?

Who are you and what have you done with FSN?
Title: Re: Converting list of file names into Excel document.
Post by: Last Hussar on 26 July 2023, 01:51:55 PM
I said I would pass my thanks on to a man overly interested in Centurion Tanks.
Title: Re: Converting list of file names into Excel document.
Post by: fsn on 26 July 2023, 04:15:49 PM
You're more than welcome.

I do have my uses.  :)
Title: Re: Converting list of file names into Excel document.
Post by: Last Hussar on 26 July 2023, 04:58:26 PM
Quote from: fsn on 26 July 2023, 04:15:49 PMI do have my uses.  :)

Many of which are illegal,  immoral or fattening.
Title: Re: Converting list of file names into Excel document.
Post by: Orcs on 26 July 2023, 05:33:33 PM
Quote from: Last Hussar on 26 July 2023, 04:58:26 PMMany of which are illegal,  immoral or fattening.
But they are the most fun things in life to partake of.  :)