FlashFXP Forums

FlashFXP Forums (https://oss.azurewebsites.net/forum/)
-   General Discussion (https://oss.azurewebsites.net/forum/flashfxp/general-discussion/)
-   -   Schedule downloads (https://oss.azurewebsites.net/forum/flashfxp/general-discussion/16566-schedule-downloads.html)

MPOWER 05-19-2015 06:14 AM

Schedule downloads
 
Hi
I am wondering if it is possible to create a schedule download from a server that will select ALL files from a folder EXCEPT a Folder that is in there.
The problem is that the filenames of the files I am interested in are changing daily because they contain the date in the following format "filenameDDMM.doc" where DDMM is obviously the date. Otherwise I would select all files except the folder and create a queue, but the next day the file names will be different.
The folder that I DON'T need to download daily that is in there is "HISTORY" folder containing all previous files.

I am not sure if I made my self clear :dizzy:

Thanks in advance

bigstar 05-19-2015 01:59 PM

This can be done by enqueuing custom commands.

First you'll need FlashFXP v5.1.0 (build 3844) or newer. You can download it here

1. Connect to the server. In the screenshots below the name of my server is "test server"
2. Browse to the desired local and remote folders.
3. Right-click on the remote file listing and from the menu Enqueue > Raw Command.
4. Now from the Enqueue > Raw Command dialog click the Down arrow to expand the text input to enable multi-line editing.
5. Enter the following commands:
Code:

/lcd n:\logs
/cd /data/logs/
/select -f
/queue selected

6. Click the OK button.
7. Save your queue.


This command script will perform the following operations when executed:
  • Change the local folder to "n:\logs"
  • Connect to a server named "test server"
  • Change to the remote folder to "/data/logs"
  • Select all files.
  • Add the selected files to the queue and then transfer them.

Screenshots

Remote Browser > File List > Right-click > Enqueue > Raw Command
https://oss.azurewebsites.net/images/foru...ueue-raw-1.png

Enqueue > Raw Command (condensed)
https://oss.azurewebsites.net/images/foru...ueue-raw-2.png

Enqueue > Raw Command (expanded)
https://oss.azurewebsites.net/images/foru...ueue-raw-3.png


The entry in your queue will look something like this
https://oss.azurewebsites.net/images/foru...ueue-raw-4.png

MPOWER 05-20-2015 03:24 AM

Thanks for the detailed reply. I suppose it is obvious that I am newer than newbie :)

I created the custom command and saved it as TASK.
Your command seems to select all files (as desired) but does not transfer anything :confused: and I get a "The operation completed successfully"
If I may add a little extra that I need... Is it possible to select and delete ALL contents of my Local Destination folder before transferring the new from the server?

Thanks again for your time

MPOWER 05-20-2015 05:23 AM

I managed to create a new command that will delete the contents of the local folder.
I am thinking of running this schedule task 1 minute prior to the new download task. Does this sound right?
Still haven't managed to transfer the selected files :mad:

bigstar 05-20-2015 07:11 AM

Quote:

Originally Posted by MPOWER (Post 85426)
Still haven't managed to transfer the selected files :mad:

Did you download and install the updated build of FlashFXP provided in my first post?

MPOWER 05-20-2015 07:30 AM

I have installed the ver 5.1.0 (Build 3839)

MPOWER 05-20-2015 07:32 AM

Sorry I thought 3839 was > than 3844 :laugh:

MPOWER 05-20-2015 07:37 AM

It is working like a charm.

Thanks again

Can I add in the same custom command the "delete local files"?

bigstar 05-20-2015 07:50 AM

Quote:

Originally Posted by MPOWER (Post 85426)
Is it possible to select and delete ALL contents of my Local Destination folder before transferring the new from the server?

Yes, we just add a few more commands.

Code:

/lcd n:\logs
/activate local
/select -f
/delete selected
/activate remote
/cd /data/logs/
/select -f
/queue selected


MPOWER 05-20-2015 08:18 AM

Perfect

Thanks


All times are GMT -5. The time now is 04:48 PM.

Powered by vBulletin® Version 3.8.11 Alpha 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)