WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> FTP Upload Plugin Question
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1152356816

Message started by JimmyDundee on Jul 8th, 2006 at 1:06pm

Title: FTP Upload Plugin Question
Post by JimmyDundee on Jul 8th, 2006 at 1:06pm
I have a scenario where I have a legacy app that changes a filename once it has performed a task, and I'd like to upload the file via FTP to another server when the name change takes place. I thought I'd be able to do this with WatchDirectory but the rename option is greyed out on the plugin config screen.

Is this by design, or does this feature become enabled in the Pro version or the registered version? I only have the demo download running at the moment.

Apart from this small issue, the program is very nice!

Title: Re: FTP Upload Plugin Question
Post by Gert on Jul 10th, 2006 at 2:08pm
Hello Jim,

This is not an evaluation limitation. The FTP plugin doesn't support renamed files (yet). A work-around that should work okay:

Use the "run an existing .bat file" plugin (see http://www.watchdirectory.net/wdhelp/plugins/wdopAutoRunBat.html ) to monitor for the rename event (you need to use the "Fast monitoring method" to be able to select the rename event). This .bat file should move the renamed file to another directory that is monitored by your ftp plugin (so it will see a new file). Use something like the following .bat file:

[code]
rem only interested in renamed files
IF "%WD_REASON%" NEQ "FILEREN" GOTO :EOF

rem move the renamed file to the directory that is watched by the FTP task
MOVE "%WD_FILE%" "C:\FilesToFtp"
[/code]

So, your FTP task should monitor C:\FilesToFtp


Gert

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.