windows - FTP Batch script witll not retrieve my files using mget, but says successful -


i have ftp batch script, when run manually works, when ran in batch file not. here content of batch script:

@echo off rem  * ******************************************************************* rem  *               ftp mget                            * rem  *                                           * rem  *                                               * rem  *                                                   * rem  *                                                   * rem  * ******************************************************************* echo * echo * echo * ftp -n -i -s:c:\scripts\testget.txt >c:\scripts\testmget.log 

text file contents:

open myftpsite.com user user1 password   user "user@user123.com 12234" password prompt  binary mget %%myfile3% mget %%myfile2% mget %%myfile1% bye close 

after runs @ log , completes running every line without error after every line get: 200 type set , script completes no files being retrieved current directory. mentioned earlier when run commands in txt file manually , use mget . retrieves of files local dir. tried mget . in txt file , did not work either.

thanks in advance suggestions.

edit: has filespecs hard coded in batch code.

@echo off rem  * ******************************************************************* rem  *               ftp mget                            * rem  *                                           * rem  *                                               * rem  *                                                   * rem  *                                                   * rem  * ******************************************************************* echo * echo * echo *  ( echo open myftpsite.com echo user user1 password   echo binary echo mget *.mac echo mget *.dat echo mget *.dac echo bye )>c:\scripts\testget.txt  ftp -n -i -s:c:\scripts\testget.txt >c:\scripts\testmget.log 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -