Microsoft again seems to do an excellent job on compatibility. Our programs run fine on the Technical Preview for the upcoming Windows 10.
News, tips, tricks on our programs WatchDirectory, WatchFTP and WxRemote.
Microsoft again seems to do an excellent job on compatibility. Our programs run fine on the Technical Preview for the upcoming Windows 10.
We just released a new version of our FTP Monitoring program WatchFTP. This is a free upgrade for all customers.
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.
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.
We just released WatchDirectory v4.8.8, this new release has the following issues solved:
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.
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.
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.
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.
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).
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.
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).
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.
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
Today we released an update for our Directory and File Monitoring program WatchDirectory. This update has the following fixes and improvements:
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.
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.
You can download the new version here. Just install it "on top" of your current release to keep all your settings and tasks.
On our forum we have a first beta available for WatchDirectory v4.8.7. The new version has several improvements when monitoring directories where files have "illegal names". More information and the download link are in this forum post.
WatchDirectory v4.7 and higher have support for filter scripts, run a little batch script to decide if a detected file should be processed by a task. This is a new option on the Filter Events settings of your task.
Before this new feature was introduced you could only filter based on (parts of) the filename or folder where the file was detected. For example "only run the task for files that match *.txt". The new filter script option gives you far more flexibility, your script receives all information about the detected file in Environment Variables and can, for example, check the contents of the detected file to decide wether the task should continue processing the file.
Several example filter scripts can be found inside the directory <Install Directory>\ExampleFilterScripts (typically C:\Program Files (x86)\watchDirectory\ExampleFilterScripts).
A client was monitoring a directory where log files are created by an automated nightly process. Most log files are of no interest but sometimes one or two files contain error information and the client wants to be notified of those. He created a task using the Email plugin and enabled the option to attach the log file. Below is the filter script he used.
rem When called from the WatchDirectory Control Center, always process the "event" IF "%WD_CALLEDFROMSETUP%" EQU "Y" GOTO :SayYes rem use FINDSTR to check the contents of the file FINDSTR /I "Error" "%WD_FILE%" IF %errorlevel% EQU 0 GOTO :SayYes rem this is not an error log, tell the task to ignore the event GOTO :SayNo :SayYes ECHO Y > "%WD_FILTERRESULT%" GOTO :EOF :SayNo ECHO N > "%WD_FILTERRESULT%" GOTO :EOF
Do not perform any heavy processing inside those scripts. If your script takes a long time to finish the WatchDirectory task will abort. A few seconds is okay, 10 seconds is not.
Make sure your script always writes its result (the single character Y or N) to the result file
We just released version 1.9.1 of WxRemote. This release fixes a problem that caused the WxListener component to crash.
If you have version 1.9 installed (released last month), we recommend you to upgrade to this new release as soon as possible.
This free upgrade to version 1.9.1 will show the current activity of your WatchDirectory and WatchFTP tasks. Full details in this blogpost.
Download the new version from the WxRemote home page.