Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 01-21-2016, 12:02 PM   #1
t.setiao
Junior Member
FlashFXP Registered User
 
Join Date: Dec 2005
Posts: 2
Default [FlashFXP] How to check if files exists before to do

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.
t.setiao is offline  
Old 01-22-2016, 12:23 PM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

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.
bigstar is offline  
Old 01-25-2016, 05:50 AM   #3
t.setiao
Junior Member
FlashFXP Registered User
 
Join Date: Dec 2005
Posts: 2
Default

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.

Last edited by t.setiao; 01-25-2016 at 05:59 AM.
t.setiao is offline  
Old 01-25-2016, 08:30 AM   #4
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

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

Tags
ftp_server, task, copy, exists, check, files, stuck, advance, skip, file

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 11:28 AM.

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