You could try changing
Code: Select all if(matchCSV(searchFiles)){ // Look for a match of the first x number of characters in the filename
To
Code: Select all if(matchCSV(decodeURI(searchFiles))){ // Look for a match of the first x number of characters in the filename
Compare filenames in a csv to files in a directory
Compare filenames in a csv to files in a directory
Hi Paul,
Thanks for the response but unfortunately the vendors come up with the simplest (01234.jpg) to the most obscure (WWMHS-BL angle with LED.jpg) file names. You never know what they are going to give you. What I have been doing saving all the files from the CD to a folder on my desktop and bulk renaming all the file names to change the spaces to underscores. This is fine unless there are a thousand files in 40 folders on a CD and you are only looking for 50 files.
That's when I would use the use the recursive script to go through the folders to find the files and move them to my desktop then use the find and rename script to rename them.
Anyway... that being said, there is no number of characters that can be predicted for a file name or a way to know where a space might come in the name.
Limey (Paul)
Thanks for the response but unfortunately the vendors come up with the simplest (01234.jpg) to the most obscure (WWMHS-BL angle with LED.jpg) file names. You never know what they are going to give you. What I have been doing saving all the files from the CD to a folder on my desktop and bulk renaming all the file names to change the spaces to underscores. This is fine unless there are a thousand files in 40 folders on a CD and you are only looking for 50 files.
That's when I would use the use the recursive script to go through the folders to find the files and move them to my desktop then use the find and rename script to rename them.
Anyway... that being said, there is no number of characters that can be predicted for a file name or a way to know where a space might come in the name.
Limey (Paul)