Search This Blog

Friday, 30 January 2015

WatchFTP v3.7.4 released

We released a new version of our FTP Monitoring program WatchFTP.

This release fixes a problem that caused WatchFTP to use the LIST command instead of the (more reliable) MLSD command to get directory listings from the FTP server.

Download / Install

You can Download the new version here. Stop all your tasks and the WatchFTP Control Center and install the new version "On Top" of your current install. There is no need to uninstall your current version first.

Thursday, 29 January 2015

Call a script to set the subject of an email

The $CALL$ Macro

We just uploaded a new beta for WatchDirectory that has a very nice new feature: The $CALL$ macro which allows you to set (part of) the subject and/or body text of your emails.

This new feature allows you to call a batch script and use its "output" inside your emails.

Example: add the word "Error" to the subject when detected files contain the word "Error"

You could use the following text for the email subject:

$CALL:C:\Scripts\GetSubjectPrefix.bat$ detected file %WD_FILE_N%

The task will call the above script and will set all Environment Variables related to the detected file. Below is the GetSubjectPrefix.bat script:

rem use the FINDSTR command to look for the string Error inside the detected file
FINDSTR /I "Error" "%WD_FILE%"
IF %errorlevel% EQU 0 GOTO :ErrorFound
GOTO :ErrorNotFound

:ErrorFound
ECHO [ERROR] > "%WD_RESULTFILE%"
GOTO :EOF
:ErrorNotFound
ECHO [OK]  > "%WD_RESULTFILE%"
GOTO :EOF

Download

The download for this beta is available on our forum.

Monday, 24 November 2014

WatchDirectory v4.8.9 beta 1

A first (and likely last) beta for WatchDirectory version 4.8.9 is available.

To see what has changed and download the beta, visit this forum post: WatchDirectory v4.8.9 beta 1.

Thursday, 16 October 2014

Windows 10 - Yes, our programs will run on it

Microsoft again seems to do an excellent job on compatibility. Our programs run fine on the Technical Preview for the upcoming Windows 10.

Sunday, 12 October 2014

WatchFTP version 3.7.3 released

We just released a new version of our FTP Monitoring program WatchFTP. This is a free upgrade for all customers.

What's new

This version fixes an issue where the Email Action did not always close the connection to your SMTP server. Most SMTP servers will automatically close/reuse such connections but if you have a busy FTP server (a lot of emails are sent) your SMTP server could run out of connection handles.

Download / Install

You can Download the new version here. Stop all your tasks and the WatchFTP Control Center and install the new version "On Top" of your current install. There is no need to uninstall your current version first.

Sunday, 14 September 2014

WatchDirectory version 4.8.8 released

We just released WatchDirectory v4.8.8, this new release has the following issues solved:

  • The ZIP files task could not properly create ZIP files containing large (> 4 GB) files.
  • The FTP files task sometimes ignored the text/binary setting after a reconnect to the FTP server.

Upgrade

This is a free upgrade for all customers, download the new release here. Stop all your tasks and install this new release "on top" of your current version so it will keep all your tasks and settings.

Friday, 15 August 2014

WatchFTP version 3.7.2 released

We just released a new WatchFTP version, the download is available on our download page. This is a free update for all customers, just install it "on top" of your current version.

New in this release

This release fixes an issue where (some) FTP servers do not send a "succes" reply after a very large download. Previous WatchFTP releases interpreted this as a download faillure and downloaded the file again. This new release first checks if the file has been downloaded properly.

Thursday, 3 July 2014

WatchFTP v3.7.1 released

We just released version 3.7.1 of our WatchFTP program.

This release fixes an issue where a WatchFTP task could crash if you use Filter Directories.

Free Upgrade

This is a free upgrade for all customers. Download the latest evaluation version and install it "on top" of your current install (no need to uninstall first).

Sunday, 15 June 2014

WatchFTP v3.7 released

We just released version 3.7 of our WatchFTP program.

This release will automatically repair its databases if they somehow become corrupt. Database corruption could occur if the task is suddenly stopped (at "just the right/wrong moment") by the operating system, for example by a forced reboot after installing updates.

Free Upgrade

This is a free upgrade for all customers. Download the latest evaluation version and install it "on top" of your current install (no need to uninstall first).

Sunday, 4 May 2014

Rename xml files using the value of an xml-node

Q&A

A customer wants to monitor a directory for new XML files and move/rename those files to a different directory. The files should be renamed to the value of an xml-node inside the xml file.

For example, the file 123.xml, which has the following contents

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <Title>
  <PRMap>I_32c_T_A</PRMap>
  <IMP>HH</IMP>
  <Pszx>683</Pszx>
  <Pszy>560</Pszy>
  <PGszx>27.305</PGszx>
......

should be renamed to the value of the <PRMap> node, the 123.xml file will be renamed to I_32c_T_A.xml.

Solution

WatchDirectory does not directly support reading xml values, but we wrote a little helper program (GetFromXML.exe) to make this possible. The idea is to use the "Copy Files" task with the Dynamic Naming option.

One of the dynamic name tags allows you to call a batch script to determine (part of) the final name to use. This batch script can then read the xml file (using GetFromXML.exe) to extract the correct name to use.
Download GetFromXML here.

This is the batch script (GetFromXML.bat):

SET GET=C:\Bin\GetFromXml.exe
  
"%GET%" "%WD_FILE%" Title^|PRMap^|* > "%WD_FILTERRESULT%"
if %errorlevel% neq 0 (
  DEL "%WD_FILTERRESULT%"
  echo Error xml lookup in file fails > "%WD_FILTERRESULT%"
)

The script should be saved as C:\Program Files (x86)\WatchDirectory\Resolvers\GetFromXML.bat and now the customer can use the following "Dynamic Name" as the target for this copy files task:

C:\Target\{code{GetFromXml.bat,}}.xml

Sunday, 6 April 2014

WatchDirectory v4.8.7 released

Today we released an update for our Directory and File Monitoring program WatchDirectory. This update has the following fixes and improvements:

  • Improved: When WatchDirectory detects an illegal file or foldername (for example a Macintosh filename), WatchDirectory will use the so-called 8.3 (short) name instead of aborting.
  • Fixed: The new email implementation did not properly create HTML emails (embedding images did not work).
  • Improved: The upload task will not automatically try to "Resume" uploads, it is now an option you can set.

Download/Install

Download the new version here. Install it "on top" of your current version so WatchDirectory will see your settings and tasks. There is no need to uninstall your current version first.

Friday, 4 April 2014

WatchFTP v3.6.6 released

We just released version 3.6.6 of our FTP File Monitoring program WatchFTP. This is a small update with a few fixes for the Email Action. Depending on how you configured this action, some variables were not properly set.

Download/Install

You can download the new version here. Just install it "on top" of your current release to keep all your settings and tasks.