PDA

View Full Version : Schedule Get of particular files then move to folder possible?


jwfhg
05-04-2011, 09:13 AM
Hi

Apologies if this is the wrong location to post this but i couldnt see another.

I'm trialling FlashFXP as i need something that'll do the following:

- Connect to FTP
- Navigate to /files
- Download all *.XML files ignoring contents of subfolders - the files need to go to folder C:\xml
- Move all *.XML files in /files/ to /files/done/

I've done some searching but couldnt make sense of what people were recommending - saving the file as an fqp or something?

I then need to schedule this to run everyday at a particular time which i can do with Task Scheduler via command.

I've tried Curl, WinSCP, CoreFTP plus countless others but haven't been able to automate this process as yet.

Any help much appreciated.

Cheers.

MxxCon
05-04-2011, 01:43 PM
standard FTP protocol does not have commands to move/copy files between dirs on remote server.
Also there's no way for you to conditionally 'chain' commands..you wouldn't want to move files to /done/ if they weren't properly downloaded.
rather than pulling files, you are probably better off to figure out how to script pushing them. that way server would know if it successfully sent those files, and then move them to /done/

kittydalt
05-24-2011, 04:03 PM
standard FTP protocol does not have commands to move/copy files between dirs on remote server.
Also there's no way for you to conditionally 'chain' commands..you wouldn't want to move files to /done/ if they weren't properly downloaded.
rather than pulling files, you are probably better off to figure out how to script pushing them. that way server would know if it successfully sent those files, and then move them to /done/


Thanks a lot for the information. It helped me too. :)







P (http://exzorders.com/softwares/wppostbot/index.html)r (http://exzorders.com/softwares/moneyblogpro/index.html)o (http://exzorders.com/softwares/jvblogpro/index.html)f (http://exzorders.com/softwares/viralplrsoftware/index.html)e (http://exzorders.com/softwares/magicpopbar/index.php)s (http://exzorders.com/softwares/magicbannerbot/index.html)s (http://exzorders.com/softwares/hotsoftwarepack/index.html)o (http://exzorders.com/softwares/adunitmagic/index.html)r (http://exzorders.com/softwares/articlesitepowerkit/index.html) K (http://exzorders.com/softwares/dragondownloadprotector/index.html)a (http://exzorders.com/softwares/ultramaxed/index.html)t (http://exzorders.com/softwares/reallyeasywebsitebuilder/index.html)h (http://exzorders.com/softwares/listcascade/index.html)e (http://exzorders.com/softwares/memberactive/index.html)r (http://exzorders.com/softwares/affiliatepdfdispenser/index.html)i (http://exzorders.com/softwares/easycodepro/index.html)n (http://exzorders.com/softwares/reallyeasyscriptinstaller/index.html)e (http://exzorders.com/softwares/smartagentpro/index.html) B (http://exzorders.com/softwares/ultrakeyworder/index.html)o (http://exzorders.com/softwares/jvavalanche/index.html)d (http://exzorders.com/softwares/blogthemegenerator/index.html)e (http://exzorders.com/softwares/blogadpro/index.html)n (http://exzorders.com/softwares/photoadpro/index.html)h (http://exzorders.com/softwares/ppcoracle/index.html)a (http://exzorders.com/softwares/digitalphotographynicheprofitgenerator/index.html)m (http://exzorders.com/softwares/websalesmotivator/index.html)e (http://exzorders.com/softwares/rssweaver/index.html)r (http://exzorders.com/softwares/webmastersphotokit/index.html) A (http://exzorders.com/softwares/crosslinkrandomizer/index.html)n (http://exzorders.com/softwares/homepagerandomizer/index.html)d (http://exzorders.com/softwares/headlinemaximizer/index.html)e (http://exzorders.com/softwares/instantempirebuilder/index.html)r (http://exzorders.com/softwares/instantprofitbrander/index.html)s (http://exzorders.com/softwares/giveawayeventmanager/index.html)o (http://exzorders.com/softwares/jvspawner/index.html)n (http://exzorders.com/softwares/moneyblogproteamplugins/index.html)

bigstar
05-24-2011, 05:18 PM
This can be done to some extent but there is no guaranty that the files were transferred 100% without any errors.

For reliable connections or local networks the likelihood of errors is quite rare but can still occur.

Below is an outline of how to transfer all the *.xml files from a folder and skip all sub folders.

First we need to define a selective transfer rule set.


From the main menu > Tools > Selective Transfer > Edit
Rule Set, click the Add button and we'll name this rule xml files only no sub folders and click OK
File List, click the Add button and we'll add *.xml and click OK
File List, Action set to Transfer
Folder List, Action set to Skip
Now click the Save button to save the changes.

Next we'll create the transfer queue.

In this example we'll pretend that the remote folder is /private/xml/ and the local folder is c:\backup\private\xml\Queue the folder named xml from the remote server into the c:\backup\private\ folder.


The name in the queue will appear as /private/xml/ and the target as c:\backup\private\xml if done correctly.
Now right click on the entry in the queue window and select edit, change the selective transfer rule to xml files only no sub folders and then click the ok button.
Save the queue file by right-clicking on the queue and selecting Save As, now you can load this queue whenever to perform the above task, or setup a repeating schedule via the main menu > Tools > Schedule..

At least in theory that's how it would work, however while writing this guide I found a bug in 4.0 that prevents this logic from working correctly :mad: The bug causes the xml folder to be skipped, when only sub-folders within it should be skipped.

As for moving *.xml files from one location to another this is currently not possible. You can en-queue move and rename operations but they must be performed using the exact filename.

We're looking at different ways of chaining commands as well as adding more flexibility to allow these type of operations for future releases.