Go Back   FlashFXP Forums > >

Custom Commands Download, share, or get help creating your own.

Closed Thread
 
Thread Tools Display Modes
Old 03-21-2011, 10:37 AM   #1
HYing
Junior Member
FlashFXP Registered User
 
Join Date: Jan 2011
Posts: 3
Wink How to download Batch Files using command line

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/include...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/include...header_php.php
FLASHFXP -get -localpath="C:\localbase\" ftp://usr:pwd@ftp.mysite.com/include...ages/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

Last edited by HYing; 03-21-2011 at 10:46 AM.
HYing is offline  
Old 03-21-2011, 10:41 AM   #2
HYing
Junior Member
FlashFXP Registered User
 
Join Date: Jan 2011
Posts: 3
Default

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.
HYing is offline  
Old 03-21-2011, 04:56 PM   #3
Linkster
Moderator
Administrator
 
Join Date: Oct 2001
Location: New Mexico, USA
Posts: 1,070
Default

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.
Linkster is offline  
Old 03-22-2011, 01:08 AM   #4
HYing
Junior Member
FlashFXP Registered User
 
Join Date: Jan 2011
Posts: 3
Default

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.
HYing is offline  
Closed Thread

Tags
batch download, command line, download, file list, files, flashfxp, upload

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:44 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)