Search found 8 matches
- 27 Jun 2014 05:28
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
Re: MGET for specific file.
That shows me that you are expecting a batch file command to work in an FTP script, and you aren't using the batch file that was provided. The batch file is meant to be clicked on to launch it. Or you type the batch filename to launch it. It creates a new FTP script every time it runs, and launches...
- 26 Jun 2014 14:05
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
Re: MGET for specific file.
It works fine here. This is the same code in a batch file. Try to get that working. @echo off for /L %%i in (100,1,999) do echo get "Area %%i BIG.pdf" pause if you still have problems then let us know which Windows version you are using and describe how you go about executing it. This is ...
- 26 Jun 2014 09:20
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
Re: MGET for specific file.
This is the code you were meant to be using. @echo off ( echo open ftp.server.com echo username echo password echo binary for /L %%i in (100,1,999) do echo get "Area %%i BIG.pdf" for /L %%i in (1000,1,2800) do echo get "Area %%i BIG.pdf" echo bye )>ftp.script ftp -i -s:ftp.scrip...
- 25 Jun 2014 09:07
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
Re: MGET for specific file.
For several reasons yours will not work. Paste the code I provided into notepad Change the ftp.server.com and username and password in the lines below and then echo open ftp.server.com echo username echo password add a line with pause as the last line. save it as msdos text format, in a file called...
- 25 Jun 2014 08:17
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
Re: MGET for specific file.
You have to explain how you have been executing it... I have been using an ftp script. And a pretty simple one at that. open ftp user username password lcd "C:\DownloadLocation" prompt for /L %%i in (100,1,999) do echo get "Area %%i BIG.pdf" for /L %%i in (1000,1,2800) do echo g...
- 25 Jun 2014 05:46
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
Re: MGET for specific file.
When you create your FTP script, use Aacini's code to generate get statements in the batch file: Something like this untested code: @echo off ( echo open ftp.server.com echo username echo password echo binary for /L %%i in (100,1,999) do echo get "Area %%i BIG.pdf" for /L %%i in (1000,1,2...
- 24 Jun 2014 12:47
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
Re: MGET for specific file.
@echo off for /L %%i in (100,1,999) do if exist "Area %%i BIG.pdf" ECHO Process mget here with file "%%i" for /L %%i in (1000,1,2800) do if exist "Area %%i BIG.pdf" ECHO Process mget here with file "%%i" Thanks for your help, Aacini. but this is not working. ...
- 24 Jun 2014 08:38
- Forum: DOS Batch Forum
- Topic: MGET for specific file.
- Replies: 17
- Views: 7406
MGET for specific file.
I have a few files on an ftp server. The naming convention is something like Area #### BIG File.pdf where #### could be any number between 100 and 2800(with no leading zeros).
Is there a way I can use mget to only get the files between 100 and 999, then get the files that are between 1000 and 2800?
Is there a way I can use mget to only get the files between 100 and 999, then get the files that are between 1000 and 2800?