Jump to content
Sign in to follow this  
jdu98a

Resolving file names with random numbers.

Recommended Posts

I am using a plugin, Moo Plugin to be exact, to download files from an FTP server. [by the way, this is unreleated but if anyone knows a good FTP plugin other than Moo please direct me to it. Moo works fine, but it seems to no longer be supported. I've emailed the developers asking questions and gotten no response] The directory on the server contains multiple files that date over that last several weeks. They are named by date and then a seemingly randon 6 digit number (ex: File_09062012_695512). Is there a way to get filemaker to identify the correct file by finding the desired date and then ignoring the random digits? Something like "grab the file named File_09062012_######".

Share this post


Link to post
Share on other sites

Is there a way to get filemaker to identify the correct file by finding the desired date and then ignoring the random digits?

Do you mean for the purpose of downloading the file?

Share this post


Link to post
Share on other sites

Do you mean for the purpose of downloading the file?

Yes, sorry, I wasn't clear. I'm wanting to download the correct file by getting FM to identify it despite the random numbers.

Share this post


Link to post
Share on other sites

Well, Filemaker as such cannot download the correct file even if its exact name is known - that's all in the province of the plugin. Can the plugin return a list of the filenames on the FTP server?

Note also that at least in theory there could be multiple files with the same date - distinguished only by that random sequence.

BTW, what platform is this supposed to run on?

Share this post


Link to post
Share on other sites

It does not look like Moo Plugin can return a file list from an FTP directory, maybe another plugin can? I do know for a fact that there are never two files listed under the same date so that shouldn't be an issue.

I've also contacted the person who maintains the file server and asked if the random digits can be removed. We'll see.

This is running on Windows 7.

Share this post


Link to post
Share on other sites

I believe both 360Works FTPeek and CNS FTPit Pro can retrieve the list of files in a specified directory. I have no personal experience with either, and there may be others.

Once you have such list, you can loop over the items until the left part of the item matches the desired date.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.