Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Programming Languages (http://www.programmingforums.org/forum38.html)
-   -   DOS FTP help? (http://www.programmingforums.org/showthread.php?t=15629)

Jabo Apr 15th, 2008 6:05 PM

DOS FTP help?
 
I've searched and I'm not finding what I'm looking for. I'm setting up batches to ftp files, and I can set up for filtering certain criteria, but some of the files have varying name lengths, and I can't find anything about using wildcards in FTP. I've tried this:
:

  1. mget blah*moreblah.blah

and it returns file not found blah*moreblah.blah

I know for a fact the the files are there that would match the pattern. Should that work or am I going about it wrong?

Infinite Recursion Apr 15th, 2008 9:33 PM

Re: DOS FTP help?
 
I haven't used DOS in a while... but in other instances when using wildcards within a filename it has to be enclosed in double quotes... try this:

mget "blah*moreblah.blah"

Arla Apr 16th, 2008 12:03 PM

Re: DOS FTP help?
 
I just tried it (use it at work) and it works just fine, do you have the right case, remember that the machine you are getting files from may be case sensitive.

lonewolff Sep 7th, 2008 6:44 AM

Re: DOS FTP help?
 
As Arla says, it is case sensitive. Even with Microsoft IIS funnily enough, whereas the rest of the OS generally doesn't care about case.

And you don't need the quotation marks...

mget blah*moreblah.blah

...will work fine. :icon_wink:


All times are GMT -5. The time now is 4:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC