PDA

View Full Version : How to download Batch Files using command line


HYing
03-21-2011, 10:37 AM
Hey, guys!

* FlashFXP v[4 ].[000 ], build [1540 ], [ Yes]registered
* OS [ Yes] WinXP


Since I bought this copy of RC 4.0.x, it works great. Now, I got a problem of downloading batch files.

My site needs to update a fixed set of files daily. I know the files path, it looks like this:

/includes/modules/pages/gv_redeem/header_php.php
/includes/modules/pages/login/header_php.php
/includes/modules/pages/no_account/header_php.php
/includes/modules/pages/no_account/jscript_addr_pulldowns.php
/includes/modules/pages/no_account/jscript_form_check.php
/includes/modules/pages/no_account/on_load_main.js
/includes/modules/pages/order_status/header_php.php


All those server files needs to be backuped firstly, because somebody else have edited them online. Then I will upload the new files in my local computer.

So the problem is like this:
1. I know what server files needs to be backuped
2. I know how to use FlashFXP to down a file using command line like this:
FLASHFXP -get -localpath="C:\localbase\" ftp://usr:pwd@ftp.mysite.com/includes/modules/pages/gv_redeem/header_php.php

That works great...

3. how to make the whole process automatically running like a BATCH command? I have tried to write a .BAT file like this:
FLASHFXP -get -localpath="C:\localbase\" ftp://usr:pwd@ftp.mysite.com/includes/modules/pages/gv_redeem/header_php.php
FLASHFXP -get -localpath="C:\localbase\" ftp://usr:pwd@ftp.mysite.com/includes/modules/pages/index.php

It opens one FlashFXP window to download a file, then I have to close it, then it opens another...

That really made me feel despaired. There are about 120 files needs to be backuped, I don't think this is the solution I need.

Please let me know how you guys deal with this situation.

Best Regards,
HYing

HYing
03-21-2011, 10:41 AM
Also, is it possible to convert this list to be a flashfxp Queue?


/includes/modules/pages/gv_redeem/header_php.php
/includes/modules/pages/login/header_php.php
/includes/modules/pages/no_account/header_php.php
/includes/modules/pages/no_account/jscript_addr_pulldowns.php
/includes/modules/pages/no_account/jscript_form_check.php
/includes/modules/pages/no_account/on_load_main.js
/includes/modules/pages/order_status/header_php.php

I don't need to know their size, just download them all.

Linkster
03-21-2011, 04:56 PM
you are on the right track, but you'll want to just create a queue that does everything you want in sequential order (download, upload, delete, etc), then right click the queue window and save as. Then use command line to launch your .fqf file. Let me know if you need any more detail.

HYing
03-22-2011, 01:08 AM
It seems I fixed this. Create a queue using PHP is simple even it's not easy to edit the separators of ASCII [1] or [2].

Glad it works.