View Full Version : Schedule downloads
MPOWER
05-19-2015, 06:14 AM
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 (http://alt-download.flashfxp.com/FlashFXP51_3844_Setup.exe)
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:
/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/forum/flashfxp-enqueue-raw-1.png
Enqueue > Raw Command (condensed)
https://oss.azurewebsites.net/images/forum/flashfxp-enqueue-raw-2.png
Enqueue > Raw Command (expanded)
https://oss.azurewebsites.net/images/forum/flashfxp-enqueue-raw-3.png
The entry in your queue will look something like this
https://oss.azurewebsites.net/images/forum/flashfxp-enqueue-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
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
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.
/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
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.