PDA

View Full Version : [FlashFXP] How to check if files exists before to do


t.setiao
01-21-2016, 12:02 PM
Hello,
I want to run scheduled Tasks to copy FTP_server files To Local but when FTP_server have no file, the task stuck.
So, it's there anyway to check like:

IF Source_Files Exists Do copy ELSE skip task.


Thanks advance.

bigstar
01-22-2016, 12:23 PM
Can you please explain what you mean by the task is stuck?

If the folder exists and there are no files then the task should still complete successfully; even when no files exist to be transferred.

Turn on session logging for the scheduled task and include the log in your reply.

t.setiao
01-25-2016, 05:50 AM
Hello, thank you for your reply and sorry for the delay.

> When Windows task manager start the FlashFXP task :
>> FlashFXP start in background (notified by systray icon) and Load « Queue file »
>> After a while, FlashFXP systray icon has gone.
Windows task manager notice that FlashFXP task has done.

> I start FlashXP manually and the error « Queue windows » pop-up and shown that task has fail.


After verification, it turns out that the problem was that FlashFXP was unable to establish connection with the FTP server.
Obviously it can not connect to the server through a scheduled task.
BUT, When I manually connect to the FTP server and loads the queue file, the opperation operating normally.

So the question, should the connection is configured in a particular way?

In the immediate, I left FlashFXP side that could not fulfill the tasks that I need.
I turned to the old dinausaure Windows ftp.exe in command line mode through a basic script and it works perfectly without any problems. (Even if it's ugly)

Thanks advance.

bigstar
01-25-2016, 08:30 AM
When a scheduled task runs via the Task Scheduler is uses the same configuration as if the task is run manually, with one exception if the task is configured to "run task whether the user is logged in or not" then you will not have access to network mapped drives or encrypted files.

This setting is located on the Edit Task dialog under the Windows tab.

By default the scheduled task only runs when the user is logged in.

Depending on which version of Windows OS you're using there may be other unknown factors involved as well, and the connection failure could be related to a software firewall and/or anti-virus denying access when run as a scheduled task.